what's new on the facebook platform, november 2011
DESCRIPTION
Chchchanges - not many really. Graph API getting more and more useful!TRANSCRIPT
1
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
WHAT’S NEW ON THE FACEBOOK PLATFORM, NOVEMBER 2011
Iskandar Najmuddin16th November 2011Facebook Developer Garage London
2
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
FACEBOOK GRAPH API IS AN ANAGRAM FORBio Appear, Hack Fog1
1. In case you were wondering
3
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Reviews and Discussion Tabs are no more!
• Low Signal:Noise
• Same content works on Walls• No pre-Like requirement for posting or commenting
• Users don’t browse apps at all – Directory is long-dead• Social discovery alone is enough?
“We've found that the best way to encourage conversation and feedback is through posts and comments on your Wall, so we're removing the Reviews and Discussions tabs for now.” - https://www.facebook.com/help/?faq=254646391237470
App Reviews Gone
4
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Get stories “not intentionally generated by users”.
What does that even mean?
• Includes some Ticker stories:• X became friends with Y & Z• X liked A & B
• No Open Graph Beta actions, however.
• Data also available via FQL• See the stream table
Enable the migration to get started:
Read ‘Recent Activity’
5
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Example Graph API endpoints:
• /me/home
• /UID/feed
• /UID/posts
• /POST_ID
Polymorphic Post objects
• story member instead of message
• story_tags format identical to message_tags
‘Recent Activity’ Posts
{id: “123123123_10150421999553217", from: { name: "Todd Chaffee", id:
“123123“ }, story: "Todd Chaffee likes a link.", story_tags: { 0: [ {
id: 123123, name: "Todd Chaffee", offset: 0, length: 12 } ] },
picture: url, link:
"http://facebookgarage.co.uk/", name: “Facebook Developer Garage
London", description: “Pizza and beer, we
love them", icon: url, actions: snip, type: "link", application: appinfo, created_time: date, updated_time:
date,comments: { count: 0 }
}
Post data
6
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Use New Extended Permissions
• user_questions & friends_questions
Read Questions posted by User or Page via:
• FQL
• Graph API
But!
• No way to create Questions.
• No data on who voted what.
Read Questions
7
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Example Graph API endpoints:
• /UID/questions
• /PAGE_ID/questions
Question Data
{ id: "10150187368523217", from: { name: "Todd Chaffee", id: “123123123" }, question: "Have you posted a Facebook question yet?", created_time: DATE, updated_time: DATE, options: { data: [ { id: "208816992471354", from: { name: "Todd Chaffee", id: “123123123" }, name: "No", votes: 4, created_time: DATE }, { id: "220590734621754", from: { name: "Todd Chaffee", id: “123123123" }, name: "Yes", votes: 3, created_time: DATE } ], paging: { next: URL } } }
Question data
8
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
If a Post has a linked Place, you can now read that data!
• Place data similar to that from /UID/checkins endpoint.
• Now easier than ever to make map mash-ups with FB data!
Get Location data from Posts
{ "place": { "id": "94131184662", "name": "Toronto Pearson International Airport", "location": { "city": "Toronto", "state": "ON", "country": "Canada", "zip": "L5P 1B2", "latitude": 43.682564592758, "longitude": -79.616179866991 } }}
Place data
9
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Back-end changes will be made on Nov. 30th to:
• FQL tables: thread, message, mailbox_folder• Use unified_thread & unified_message instead
• REST API method: message.getThreadsInFolder
• Graph API endpoints: /me/inbox, /me/outbox, /me/updates
Unified Messaging API Updates
10
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
Ack! What do I do?
You may want to:• Use timestamps for paging instead of offsets.
• Allow for massively long threads.
• Remove references to the updates message folder.
• Avoid Panic: No date yet for final removal of old API calls & FQL tables.
• Test your Message-y apps with the migration “New mailbox backend”
Delivering Unified Messaging
11
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
• New “Marketing API Program” to become umbrella for Platform & Developer support.
• Read Friend Requests via Graph API
• Comments Plugins to be auto-upgraded. No action required
Timeline Timelines
•Test users now have Timeline.
•Officially missing:•Date for full launch!•Answer for “Will Pages get Timeline?”
Other Stuff{ "from": { "name": "Mark Zuckerberg", "id": "4" }, "created_time": DATE, "to": { "name": "Iskandar Najmuddin", "id": "123123123" }}
12
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
IMPORTANT BREAKAGESAND DATES
13
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
December 1st
• OAuth spec migration: • Change code_and_token => code%20token
• FB.Canvas.getPageInfo requires callback function argument:FB.Canvas.getPageInfo(function(info) {
alert('Width: ' + info.clientWidth + ' Height: ' + info.clientHeight);});
• Dashboard APIs gone
• Bookmark URL gone: Detect ref=bookmarks in your app instead
Other bits
• Nov 30th: Unified Messaging back-end API updates
• Batch API Exception Format (a migration)• Errors can now return standard Graph API format:
{"error": {"message": "", "type": ""}}
Breaking Changes
14
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
PDC Program mission
“To support development companies that can provide integrated and holistic Platform, Pages, and Ads solutions to Facebook marketing and business operations”
• About 90 existing PDC members
• Get increased access to FB employees and training
• Deadline is 5PM PST on Dec. 6th
Find out more here:
https://developers.facebook.com/preferreddevelopers
New Preferred Developer Consultant Intake
15
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
SYNCAPSE | New York | Toronto | London | Portland
THIS IS THE LAST SLIDESee you in 2012! Unless the Mayans were correct and we’re doomed. In which case, goodbye and farewell. It was fun.
Ask me about social media, technology, or Super Streetfighter IV Ultra-Combos:• [email protected]• twitter.com/iskandar• +44(0)207.096.0146