What's New on the Facebook Platform, November 2011
1. WHAT’S NEW ON THE FACEBOOK
PLATFORM, NOVEMBER 2011
Iskandar Najmuddin
16th November 2011
Facebook Developer Garage London
SYNCAPSE | New York | Toronto | London | Portland 1
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
2. FACEBOOK GRAPH API IS AN ANAGRAM FOR
Bio Appear, Hack Fog1
1. In case you were wondering
SYNCAPSE | New York | Toronto | London | Portland 2
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
3. App Reviews Gone
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
SYNCAPSE | New York | Toronto | London | Portland 3
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
4. Read ‘Recent Activity’
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:
SYNCAPSE | New York | Toronto | London | Portland 4
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
5. ‘Recent Activity’ Posts
Post data
Example Graph API endpoints: {
• /me/home id: “123123123_10150421999553217",
from: {name: "Todd Chaffee",id: “123123“},
• /UID/feed story: "Todd Chaffee likes a link.",
story_tags: {0: [{
• /UID/posts id: 123123,
name: "Todd Chaffee",
• /POST_ID offset: 0,
length: 12}]},
picture: url,
link: "http://facebookgarage.co.uk/",
Polymorphic Post objects name: “Facebook Developer Garage London",
description: “Pizza and beer, we love them",
• story member instead of message icon: url,
actions: snip,type: "link",
• story_tags format identical to application: appinfo,
message_tags created_time: date,updated_time: date,
comments: {count: 0}
}
SYNCAPSE | New York | Toronto | London | Portland 5
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
6. Read Questions
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.
SYNCAPSE | New York | Toronto | London | Portland 6
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
7. Question Data
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} }
}
SYNCAPSE | New York | Toronto | London | Portland 7
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
8. Get Location data from Posts
If a Post has a linked Place, you can now read that data!
• Place data similar to that from /UID/checkinsendpoint.
• Now easier than ever to make map mash-ups with FB data!
Place data
{"place":
{
"id": "94131184662",
"name": "Toronto Pearson International
Airport",
"location": {
"city": "Toronto",
"state": "ON",
"country": "Canada",
"zip": "L5P 1B2",
"latitude": 43.682564592758,
"longitude": -79.616179866991
}
}
}
SYNCAPSE | New York | Toronto | London | Portland 8
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
9. Unified Messaging API Updates
Back-end changes will be made on Nov. 30th to:
• FQL tables: thread, message, mailbox_folder
• Useunified_thread&unified_messageinstead
• REST API method: message.getThreadsInFolder
• Graph API endpoints: /me/inbox, /me/outbox, /me/updates
SYNCAPSE | New York | Toronto | London | Portland 9
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
10. Delivering Unified Messaging
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”
SYNCAPSE | New York | Toronto | London | Portland 10
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
11. Other Stuff
{ "from": {
• New “Marketing API Program” to become "name": "Mark Zuckerberg",
"id": "4"
umbrella for Platform & Developer support. },
"created_time": DATE,
"to": {
"name": "IskandarNajmuddin",
• Read Friend Requests via Graph API "id": "123123123"
}}
• 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?”
SYNCAPSE | New York | Toronto | London | Portland 11
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
12. IMPORTANT BREAKAGES
AND DATES
SYNCAPSE | New York | Toronto | London | Portland 12
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
13. Breaking Changes
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": ""}}
SYNCAPSE | New York | Toronto | London | Portland 13
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
14. New Preferred Developer Consultant Intake
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
SYNCAPSE | New York | Toronto | London | Portland 14
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.
15. THIS IS THE LAST SLIDE
See 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:
• i.najmuddin@syncapse.com
• twitter.com/iskandar
• +44(0)207.096.0146
SYNCAPSE | New York | Toronto | London | Portland 15
All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.