14
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, JUNE 2011 Iskandar Najmuddin 15 th June 2011 Facebook Developer Garage London

What's New on the Facebook Platform, June 2011

Embed Size (px)

DESCRIPTION

New stuff on the Facebook Platform for June 2011

Citation preview

Page 1: What's New on the Facebook Platform, June 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, JUNE 2011

Iskandar Najmuddin15th June 2011Facebook Developer Garage London

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

2

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

The Right Hand Giveth

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

3

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Track entire page load time

• including Facebook chrome

• for Canvas iframe apps

New JS SDK FB.Canvas methods• FB.Canvas.stopTimer(callback)

• FB.Canvas.startTimer()

• FB.Canvas.setDoneLoading(callback)• Callback function gets page load time for your enjoyment

Use it to help understand and tune your Canvas apps’ performance.

No mention of new load time metrics in documentation. Yet.

Page Load Time Insights

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

4

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Then:• Single line, aggregated = low visibility

Now:• Full story, with image = high visibility

Likeage Propagates Full Feed Stories

How to get Full Story Goodness

1. Get the Open Graph metadata right!2. Your og:image must be at least 180

pixels wide3. Convince users to Like your content

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

5

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Brand new Graph API methods

• Fetch tags: GET PHOTO_ID/tags

• Add tags: POST PHOTO_ID/tags/USER_ID

• Update tag: POST PHOTO_ID/tags/USER_ID

Parameters

1. to - User ID

2. x – x coordinate

3. y – y coordinate

But note:

• No documented Delete method. Yet.

• Remember – only for tagging friends in real photos!• Flout the Platform Guidelines, pay the price

• Previously possible via REST API only

Graph API for Photo Tags

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

6

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Link to Paypal when signing up to Facebook Credits

• Unclear if existing Credits accounts can link to Paypal

Opens Credit Payouts for loads more countries:

Credits Payout via

ArgentinaAustraliaBrazilChinaFrench GuianaGuadeloupeIndiaIndonesia

IsraelJapanMalaysiaMartiniqueMexicoNew ZealandNorwayPhilippines

ReunionSouth KoreaSwitzerlandTaiwanThailandTurkey

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

7

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

A major upgrade: not backwards-compatible, so watch out!• PHP SDK officially supported by Facebook since forever

• Uses OAuth flows exclusively

• Available on github: https://github.com/facebook/php-sdk

• Facebook class extends BaseFacebook• Encapsulates persistence methods

Then:

$session = $facebook->getSession();

Now:

$user = $facebook->getUser();

PHP SDK v3.0.0.0.0.0.0.0

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

8

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

The Left Hand Taketh Away

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

9

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Breaking change (as of June 3rd), watch out!

Then: https://graph.facebook.com/iskandar.najmuddin/feed

Now: https://graph.facebook.com/iskandar.najmuddin/feed?access_token=TOKEN_HERE

• No token = throws Exception

• Token not associated with read_stream permission = Empty data

• Also affects FQL stream table queries

• You can use an Application Token too

Change announced May 28th, implemented June 3rd => Roadmap FAIL

Feed Access Token Requirement

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

10

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

Breaking change, perhaps (as of July 12th)?

“This change encourages users to share authentic and relevant content with their friends.”

Feed Story ‘Message’ Pre-fill Going Away

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

11

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

And the rest

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

12

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

• New Developer App in Beta: better, faster, stronger• search, sort, paginate• includes test user management• to be released Q3 2011

• Long Tab names now possible – up to 100 chars• but may wrap and affect the # of tabs above the fold

• Client-side re-authentication flow available• useful for {e,f}-commerce, the wild internet café world

• Get a user’s video upload limitshttps://graph.facebook.com/USER_ID?fields=video_upload_limits &access_token=ACCESS_TOKEN

Misc Updates and Stuff and Things

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

13

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

July 1st – Use Credits or Die

• for Games accepting payments

July 1st again – FB to provide JS SDK update

• new cookie format

• PHP SDK already here

Sept 1st – Use new OAuth flows or Die

• avoid UID leakage

Oct 1st – Use signed_request over SSL or Die

• for all Canvas apps

The Long and Winding Roadmap

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

14

All materials contained within this presentation are copyright Syncapse Corp. 2011. Reproduction or distribution is prohibited.

SYNCAPSE | New York | Toronto | London | Portland

THAT’S ALL FOR NOW

Tune in for the next episode!• Same Bat-3rd-Wednesday.• Same Bat-London-Facebook-Developer-Garage.

Ask me about social media, technology, or early hip-hop:• [email protected]• twitter.com/iskandar• +44(0)207.096.0146