Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

23
Hope you this Facebook Social Plugins and OpenGraph API

description

Presented by Jon Loyens Refresh Austin's May 2011 meeting

Transcript of Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Page 1: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Hope you this!Facebook Social Plugins and OpenGraph API

Page 2: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

A Little Background •  We  have  apps!  

2

Page 3: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

A Little Background •  We  do  plug-­‐ins  

3

Page 4: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

A Little Background •  Been  using  the  FB  Pla6orm  extensively  for  over  2  yrs  •  Personalize  user  generated  content  on  the  Web  

4

Page 5: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Using the FB Platform •  SocialPlugins  •  AuthenBcaBon  •  Open  Graph  API  

5

Page 6: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Social Plugins •  Easily  deployable  widgets  that  bring  FB  into  your  site  –  Like  BuJon  –  Send  BuJon  –  Comments  – AcBvity  Feed  –  RecommendaBons  –  Like  Box  –  Facepile  –  Live  Stream  

6

Page 7: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

The Like Button •  65  million  Likes  occur  daily!  •  Two  ways  to  implement  

–  Simple  iFrame  –  JS  Based  

•  Always  use  the  JS  based  version  •  Always  use  an  App  ID  •  Always  implement  OG  tags!  

7

Page 8: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

What can you do with a ? A  website  does  get:  •  The  ability  to  post  messages  to  the  news  feed  of  users  who  Like  an  item  (via  web-­‐interface  and  API)  

i.e. can think of a Like as a mini RSS-subscribe button

Page 9: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

A  website  does  get:  •  Access  to  analyBcs  informaBon  regarding  Likes  of  an  item  (via  a  web-­‐interface  and  API)  

What can you do with a ?

Page 10: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

The  Insights  API  allows  you  to  specify  a  date  range,  and  request  a  number  of  aggregate  metrics  including:    •  Likes  /  Unlikes  •  Likes  with  a  Comment  •  Re-­‐sharing  of  Likes  by  Friends  •  Top  CiBes,  Top  Countries  of  visitors  who  Like  •  Gender,  Age  breakdown  of  visitors  who  Like    

What can you do with a ?

Page 11: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Note:    Some  items  that  can  be  Liked  (e.g.  Ar,cles,  Videos)  are  classified  as  Transient  Content  by  Facebook        Transient  Content:  •  Does  not  show  up  in  lists  of  users’  Likes  in  the  API  •  Does  not  show  up  in  the  users’  profile  •  Does  not  allow  the  owner  to  post  anything  to  the  users  who  liked  the  item  

<meta property="og:type" content=”article" />

What can you do with a ?

Page 12: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Access to information

How  can  we  get  detailed  visitor  Facebook  informaBon?  Ask:                

                     

Page 13: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

FB Authentication •  Great/FricBonless  way  to  get  users  to  sign  in  •  Two  opBons:  

–  FB  Login  –  FB  RegistraBon  

13

Page 14: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Access to information You  have  to  be  explicit  with  the  extended  permissions  you  request  from  a  user:      

•  About Me •  Activities •  Birthday •  Checkins •  Education •  Email Address •  Events •  Groups •  Hometown •  Interests •  LikesAccess to

information

•  Location •  Messages •  Notes •  Online Status •  Photos •  Photo Tags •  Relationships •  Relationship Status •  Last Status •  Videos

The more you ask for, the more likely they are to bounce

Page 15: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

OK… so we’re Authenticated? •  Now  what?  •  Can  use  the  JS  SDK  to  detect  login  •  Use  the  JS  SDK  to  discover  some  interesBng  things  

15

Page 16: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Meanwhile, back on the server… •  Using  the  various  SDKs  we  can  make  similar  calls  

16

Page 17: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

Some statistical analysis… In  Oct  2010  we  created  a  Content  TargeBng  app  and  asked  employees  to  give  the  app  full  data  access.            •  75  Employees  granted  access  •  Employees  +  Friends  =  ~24,000  profiles  to  analyze  

(that  was  an  average  of  320  friends  /  employee)  

•  ~1  million  Likes,  spread  across  290,000  different  items  

Page 18: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

How many things do people ?

The  average  number  of  likes  is  35,  but  the  median  is  11  

» ¼ of visitors don’t have any Facebok Likes

» ½ of visitors have 10 or less

» only ¼ of visitors have more than 35

Individually, this is not a lot of information yet, but it’s growing.

Page 19: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

What do people ?

Page 20: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

What do people ?

–  2  ArBsts,  Albums,  or  Songs  –  2  Movies,  TV  Shows  or  Actors  

–  1  Local  Business  –  1  Website  –  1  Public  Figure  

–  1  Product  –  1  Restaurant  –  1  Team  or  Athlete  –  1  Book  –  1  School  

 

At the median, we would expect a visitor to like:

In reality the likes are not uniformly distributed across the categories. Some users like mostly music, others are more varied.

Page 21: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

From people with 11 likes, here is one at random: Mr A

What do people ?

Cafe  Java  (AusBn)   Restaurants  

Carnival  Cruise  Lines   Airlines_ships_train  

Duvel   Food_beverage  

Full-­‐on  Psytrance   Musicians  

Italo  Disco   Musical  genre  

Jokes   Interest  

Michael  Bolton   Musicians  

Psyradio   Websites  

Texas  Hold'em  Poker   Games  

The  Fantasy  Poker  League   Local_business  

Trading   Interest  

Page 22: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

From people with 11 likes, here is one at random: Mrs B

What do people ?

91%  of  people  don't  know  the  6  secrets  Disney  is  hiding  from  people   Movie  

CNET   CommunicaBons  

CRUNCH   Health_beauty  

Friday  Night  Lights   Television  

Hulu   Local_business  

I  Heart  Photography   Local_professional_services  

JRS  and  THE  EFFIN'  BAND   Musicians  

Kohl's   Retail  

The  LXD   Products_other  

The  Office   Television  

The  Office   Television  

Page 23: Facebook Social Plugins and OpenGraph API - Jon Loyens at Refresh Austin

The End