Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Facebook Open Graph API

Facebook Open Graph API presentation from Facebook Developers Garage Toronto on Oct 21, 2010

  • Be the first to comment

Facebook Open Graph API

  1. 1. Open Graph API
  2. 2. Social Plugins
  3. 3. <html xmlns="" xmlns:og="" xmlns:fb=""> <head> <title>The Rock (1996)</title> <meta property="og:title" content="The Rock"/> <meta property="og:type" content="movie"/> <meta property="og:url" content=""/> <meta property="og:image" content=""/> <meta property="og:site_name" content="IMDb"/> <meta property="fb:admins" content="USER_ID"/> <meta property="og:description" content="A group of U.S. Marines, under command of a renegade general, take over Alcatraz and threaten San Francisco Bay with biological weapons."/> ... </head> ... </html> Like Button
  4. 4. Admin Page
  5. 5. Data Objects as URLs Users: (Bret Taylor) Pages: (Coca-Cola page) Events: (Facebook Developer Garage Austin) Groups: (Emacs users group) Applications: (the Graffiti app) Status messages: (A status message from Bret) Photos: (A photo from the Coca-Cola page) Photo albums: (Coca-Cola's wall photos) Profile pictures: (your profile picture) Videos: (A Facebook tech talk on Tornado) Notes: (Note announcing Facebook for iPhone 3.0) Check-ins: (Check-in at a pizzeria)
  6. 6. /me/ Short Cut Friends: News feed: Profile feed (Wall): Likes: Movies: Books: Notes: Photo Tags: Photo Albums: Video Tags: Video Uploads: Events: Groups: Check-ins:
  7. 7. JSON Encoded Data{ "data": [ { "id": "555020699_160639637289676", "from": { "name": "Colin Smillie", "id": "555020699" }, "message": "I agree with Reg, this makes me really proud to live in Toronto...", "picture": " d=ace00444e7daf6cb40d8605fae85c257&w=130&h=130& %2F0.jpg", "link": "", "source": "", "name": "Hoedown Throwdown", "caption": "", "description": "I got off the subway at Bloor and Yonge last night, and this is what I saw; some buskers with a fiddle and a banjo were playing, and these four other guys just started to pop it and lock it, apparently just for the hell of it. It cheered me right up.", "icon": "", "actions": [ { "name": "Comment", "link": "" }, { "name": "Like", "link": "" } ],
  8. 8. OAUTH v2 curl -F grant_type=client_credentials -F client_id=your_app_id -F client_secret=your_app_secret
  9. 9. Old REST API access_token=oauth_access_token& arg0=value0& arg1=value1 uids=555020699&fields=name&access_token=…