Upload
iskandar-najmuddin
View
1.509
Download
0
Embed Size (px)
DESCRIPTION
New stuff on the Facebook Platform for June 2011
Citation preview
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
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
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
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
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
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
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
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
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
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
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
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
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
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