15
1 All materials contained within this presentation are copyright Syncapse Corp. 2012. SYNCAPSE | New York | Toronto | London | Portland WHAT’S NEW ON THE FACEBOOK PLATFORM, JANUARY 2012 Iskandar Najmuddin 18 th January 2012 Facebook Developer Garage London

What's New on the Facebook Platform, January 2012

Embed Size (px)

DESCRIPTION

New Facebook Platform stuff for Jan. 2012

Citation preview

Page 1: What's New on the Facebook Platform, January 2012

1

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

WHAT’S NEW ON THE FACEBOOK PLATFORM, JANUARY 2012

Iskandar Najmuddin18th January 2012Facebook Developer Garage London

Page 2: What's New on the Facebook Platform, January 2012

2

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

HAPPY NEW YEAR!

Page 3: What's New on the Facebook Platform, January 2012

3

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

App Profile Pages going away

No more App Profile Pages as of Feb 1st 2012• Search goes directly to App

• Transfer Likes to a Product/App Page with same name as App• May take up to 7 days to migrate

• Content not transferred - you must do so manually!

• New Apps can optionally create a Profile Page via Developer App

• Graph API App object connections going away March 1st:• albums, feed, links, etc

• New “Add Page Tab” Dialog

Page 4: What's New on the Facebook Platform, January 2012

4

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

Direct URLhttps://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID

&display=popup&next=YOUR_URL

JS SDK

FB.ui({method: 'pagetab',

redirect_uri: 'YOUR_URL'

});

But

Not clear how to pre-fill the Page selector

Add Page Tab Dialog

Page 5: What's New on the Facebook Platform, January 2012

5

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

New Subscribe Button Plugin

HTML5<div class="fb-subscribe" data-href="https://www.facebook.com/calvinbroadus" data-width="450"></div>

XFBML<fb:subscribe href="https://www.facebook.com/calvinbroadus" width="450"></fb:subscribe>

And there's also an iframe version.

Layout styles

• standard, button_count, box_count

Page 6: What's New on the Facebook Platform, January 2012

6

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

Going private on April 1st and no longer officially supported:

• Python (https://github.com/facebook/python-sdk)

• C# (https://github.com/facebook/csharp-sdk)

• Facebook iPhone SDK

Community: start cloning now.

These SDKs race on with official support:

• JavaScript (moved to https://github.com/facebook/facebook-js-sdk)

• PHP (moved to https://github.com/facebook/facebook-php-sdk)

• iOS

• Android

SDK Support Shrinkage

Page 7: What's New on the Facebook Platform, January 2012

7

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

Graph API now uses ETags

• A part of standard RFC 2616 HTTP

1. Extract ETag from API Response

2. Use ETag in If-None-Match header

3. If ETag matches, server returns a 304 response

More responsive applications?

• Send less data across the wire in the best cases.

• Recommended usage is for data that won’t change that frequently• Friend lists, albums, etc

• But note: All requests count towards throttling limit• Including conditionals requests with If-None-Match

Graph API ETag Support

Page 8: What's New on the Facebook Platform, January 2012

8

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

Upload Video to Events

Only for Public Events

• POST https://graph-video.facebook.com/EVENT_ID/videos

• User Access Token required

• Use multipart/form-data

• Video as file attachment

• Params:• title• description• file

• Returns a Video ID

The example works: https://developers.facebook.com/blog/post/608/

Page 9: What's New on the Facebook Platform, January 2012

9

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

Read Properties• GET https://graph.facebook.com/APP_ID?fields=PROPERTY_NAME

• Use an App Access Token (some public fields don’t need an Access Token)

GET https://graph.facebook.com/175085329242673?fields=app_domains

Set Properties• POST https://graph.facebook.com/APP_ID?PROPERTY_1=PROPERTY_VALUE

• Use an App Access Token

Check out the massive list of App property fields:

https://developers.facebook.com/docs/reference/api/application/#fields

Warning: Doesn’t work for icon_url or logo_url, though!

Managing Apps via Graph API:App Properties

{  "app_domains": [ “my-app-dom.com” ], "id": "175085329242673”, "type": "application”}

Page 10: What's New on the Facebook Platform, January 2012

10

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

View Roles• GET https://graph.facebook.com/APP_ID/roles

• Use an App Access Token

Create Role• POST https://graph.facebook.com/APP_ID/roles

• Use an Admin User Access Token

• Param user: User ID

• Param role: administrators, developers, testers, or insights users

Delete Role

• DELETE https://graph.facebook.com/APP_ID/roles• Use an Admin User Access Token

• Param user: User ID

Managing Apps via Graph API:Developers and Roles

{"data": [{      "app_id": “12334251",       "user": “86858454",       "role": “administrators" }, etc ]}

Page 11: What's New on the Facebook Platform, January 2012

11

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

• Timeline released to all!• Open Graph action approvals starting now

• REST API deprecated as of December 21st 2011

• New og:video:secure_url Open Graph metadata• Required for video playback when users in HTTPS mode

• In-app currency offers now available• Similar to Credits Offers, with Offerwall and Dealspot

• Games Updates • Updated Category list• Updated Games dashboard

• Can now use filters on the home connection

• Short URL Location redirects are now tracked

Other Bits

Page 12: What's New on the Facebook Platform, January 2012

12

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

IMPORTANT BREAKAGESAND DATES

Page 13: What's New on the Facebook Platform, January 2012

13

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

December 13th

• FB JS SDK oauth param is now always true.

December 21st

• REST API officially deprecated

January 1st • FBML deprecated

• FB.Data JS SDK APIs not supported

• FB.Canvas.setAutoResize => setAutoGrow

• Credits Policy Change

January 15th

• All Apps now use “Requests 2.0” and “Requests 2.0 Efficient”

Completed ChangesOr are they?

2.14 You may not accept Credits in one app and deliver or transfer the purchase to the user in another app without our prior authorization. For example, an app solely designed to facilitate transactions is not permitted.

Page 14: What's New on the Facebook Platform, January 2012

14

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

February 1st • canvas_name becomes namespace

• App Profile pages gone

March 1st

• 960px sneaking into src_big – up from 720px

• Graph API App object connections gone

April 1st • URLs used with API dialogs and other calls MUST use a registered App domain.

• Action links, redirect_uri, etc

• Apps MUST have a User Support Email

• Deprecated SDK source code goes private

• Claim Domains for Insights only with App or User ID – not Page ID

June 1st

• FBML rendering ends forever. No tears will be shed.

Breaking Changes

Page 15: What's New on the Facebook Platform, January 2012

15

All materials contained within this presentation are copyright Syncapse Corp. 2012.

SYNCAPSE | New York | Toronto | London | Portland

THIS IS THE LAST SLIDEPlease donate to the EFF and/or the Open Rights Group so they can fight retarded legislation like SOPA and PIPA!

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