what's new on the facebook platform, november 2011

15
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 Najmuddin 16 th November 2011 Facebook Developer Garage London

Upload: iskandar-najmuddin

Post on 13-May-2015

1.679 views

Category:

Technology


0 download

DESCRIPTION

Chchchanges - not many really. Graph API getting more and more useful!

TRANSCRIPT

Page 1: What's New on the Facebook Platform, November 2011

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

Page 2: What's New on the Facebook Platform, November 2011

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

Page 3: What's New on the Facebook Platform, November 2011

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

Page 4: What's New on the Facebook Platform, November 2011

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’

Page 5: What's New on the Facebook Platform, November 2011

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

Page 6: What's New on the Facebook Platform, November 2011

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

Page 7: What's New on the Facebook Platform, November 2011

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

Page 8: What's New on the Facebook Platform, November 2011

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

Page 9: What's New on the Facebook Platform, November 2011

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

Page 10: What's New on the Facebook Platform, November 2011

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

Page 11: What's New on the Facebook Platform, November 2011

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" }}

Page 12: What's New on the Facebook Platform, November 2011

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

Page 13: What's New on the Facebook Platform, November 2011

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

Page 14: What's New on the Facebook Platform, November 2011

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

Page 15: What's New on the Facebook Platform, November 2011

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