39
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, OCTOBER 2011 Iskandar Najmuddin 19 th October 2011 Facebook Developer Garage London

What's New on The Facebook Platform, October 2011

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: What's New on The Facebook Platform, October 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, OCTOBER 2011

Iskandar Najmuddin19th October 2011Facebook Developer Garage London

Page 2: What's New on The Facebook Platform, October 2011

2

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

SYNCAPSE | New York | Toronto | London | Portland

I {actioned} THIS {object} USING {app}

Page 3: What's New on The Facebook Platform, October 2011

3

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

SYNCAPSE | New York | Toronto | London | Portland

The HTTPS deadline for Canvas and Tab apps.

• No SSL? No more users. Bye bye!

• So check your Tabs, if you got ‘em.

• Use the setAppProperties (REST API) to set secure URLs en-masse

• FBML apps work, but check externally-loaded resources, avoid ‘mixed content’ messages.

OAuth 2.0 now enabled by default

• Use PHP SDK >= 3.1.1

• Set oauth:true in FB JS SDK

• Watch out for JS cookie vs. session ‘code’ conflicts, though

October 1st – The Modern FB Platform

Page 4: What's New on The Facebook Platform, October 2011

4

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

SYNCAPSE | New York | Toronto | London | Portland

More methods, more objects

• Manage Notifications

• Manage Events

• Read Friend Requests

• Manage banned App users

• Manage App migrations

• Set App restrictions

• Read Game Achievements

Any reasons left to use the REST API?

Graph API Updates

Page 5: What's New on The Facebook Platform, October 2011

5

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

SYNCAPSE | New York | Toronto | London | Portland

Allows users to decline permissions individually. This is great for everyone!

Apps should now

• Validate user permissions before attempting an action

• Gracefully handle failures due to missing permissions

What to do• Use the Graph API to check permissions and FB.login to request missing ones.

• Or use the Real-Time API to cache existing permissions for each user.

• Use new Insights to see which permissions get rejected and tune your app accordingly.

• Check out Authenticated Referrals: Automatic permissions when users come to your app from FB.

New Auth Dialog

Page 6: What's New on The Facebook Platform, October 2011

6

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

SYNCAPSE | New York | Toronto | London | Portland

New Auth Dialog Example

Page 7: What's New on The Facebook Platform, October 2011

7

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

SYNCAPSE | New York | Toronto | London | Portland

See ALL of your Facebook activity over time.

• Add historical events and content.

• Check-in mapping.

• More expression• Highlight Timeline Stories• Use clever Cover images

• And Application Content too!

• Available for Developers now, but not fully launched yet.

Timeline is The New Profile

Page 8: What's New on The Facebook Platform, October 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 Ticker is a near-real-time firehose of connection activity stories.

• Perfect for light touch, ‘trivial’ content.• Is this where those damn Farmville stories belong?

• Apps can Publish Stories to the Ticker without user confirmation.

Ticker is a Firehose

Page 9: What's New on The Facebook Platform, October 2011

9

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

SYNCAPSE | New York | Toronto | London | Portland

Some stories will be promoted to the News Feed, if the Graph Rank AI deems them worthy.

Ticker | Graph Rank = News Feed

Ticker Story

Graph RankInternational AI of Mystery

News Feed

Worthy?Full Story

Page 10: What's New on The Facebook Platform, October 2011

10

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

SYNCAPSE | New York | Toronto | London | Portland

“Friction-less” requests can skip confirmation dialog.

• But only if all the ‘to’ UIDs have been approved by the user at least once.

Breaking Change:

Callback response data structure changed to contain array of UIDs in the to property.

Requests 2.0 Updates

January 1, 2012 - existing apps will be opted into the Request 2.0 migrations!

Page 11: What's New on The Facebook Platform, October 2011

11

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

SYNCAPSE | New York | Toronto | London | Portland

The first provider: Heroku

Clicky clicky clicky – now you have a hosted app running in that there cloud.

Heroku supports:

• PHP (warning: docs are sparse)

• Node.js

• Python

• Ruby

$ git push origin master

… heroku does some magic

… And now your app is updated

Free for low-traffic apps!

Cloud Service Integration

Page 12: What's New on The Facebook Platform, October 2011

12

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

SYNCAPSE | New York | Toronto | London | Portland

Bookmarking, Requests, all work nicely.

• But still no Page Tabs anywhere Mobile.

Native Facebook apps (iOS, Android) know to open your app as:

1. Native Mobile or

2. Mobile Web

Credits on Mobile supported, but not in native iOS apps (thanks a lot, iTunes)

Your Mobile Web app will work inside the Facebook Native App chrome.

Mobile Web Apps

Page 13: What's New on The Facebook Platform, October 2011

13

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

SYNCAPSE | New York | Toronto | London | Portland

In the iPad Facebook App:

Mobile Web Apps – Basic Auth Dialog

Page 14: What's New on The Facebook Platform, October 2011

14

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

SYNCAPSE | New York | Toronto | London | Portland

In the iPad Facebook App:

Mobile Web App - Example

Page 15: What's New on The Facebook Platform, October 2011

15

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

SYNCAPSE | New York | Toronto | London | Portland

OPEN GRAPH BETA

Page 16: What's New on The Facebook Platform, October 2011

16

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph BetaWhat’s it about?

“With the Open Graph, your app becomes a part of the user’s identity and social graph.

Through a single API, you’re able to deeply integrate into the key points of distribution on Facebook: Timeline, App Views, News Feed, and Ticker. …With the Open Graph, you’ll be able to create a deep, persistent connection between you and your users, and drive new users to your app.”

From https://developers.facebook.com/docs/beta/

Page 17: What's New on The Facebook Platform, October 2011

17

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph BetaSay What?

For Developers• Invent new ways for users to interact with your content.• Lots of new methods to raise app visibility.• More connections, more data = more WIN!

But note• It’s all beta, baby• When do Custom Actions launch? undefined

Oh No!Matt throws Danout the window

Page 18: What's New on The Facebook Platform, October 2011

18

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph BetaNodes and Lines

Objects are Nodes• Facebook own their Social Graph Nodes

• Users, Pages, Groups, Events, etc• You can create your own Nodes

Actions are Lines • AKA Edges or Connections• Facebook own some Actions

• Like, Recommend, Friend, etc• You can create your own Actions

You can now connect Nodes together using your own Actions.

Page 19: What's New on The Facebook Platform, October 2011

19

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph, not so long ago

• Create your own Objects

• Use Facebook’s Object Types or define your own

• Social Graph users can do • Facebook-defined actions on your Objects.

Page 20: What's New on The Facebook Platform, October 2011

20

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph, today

• Create your own detailed Object Types and Actions in your app Namespace.

• Social Graph users can do• Facebook-defined actions on your Objects• Custom actions on your Objects• Custom actions on Facebook-defined Objects

Page 21: What's New on The Facebook Platform, October 2011

21

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

SYNCAPSE | New York | Toronto | London | Portland

Click on the Open Graph link in the App Settings menu.

Create and manage Actions, Object Types, and Aggregations.

But there is NO API access for any of this yet, so get ready for lots of browser-driving

Get Started – The Open Graph Dashboard

Page 22: What's New on The Facebook Platform, October 2011

22

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

SYNCAPSE | New York | Toronto | London | Portland

1. Name it

2. Add custom properties

3. Inflect it

Set up Custom Object Types

Page 23: What's New on The Facebook Platform, October 2011

23

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

SYNCAPSE | New York | Toronto | London | Portland

Tweak your OG metadata

1. Add prefix namespaces to the head element

2. Add your app namespace to the og:type meta content

<head prefix="og: http://ogp.me/ns# my_ns: http://ogp.me/ns/apps/my_ns#">

<meta property="fb:app_id" content="278839975471035"/>

<meta property="og:locale" content="en_US" />

<meta property="og:title" content="Pineapple Pizza Slice" />

<meta property="og:type" content="my_ns:pizza_slice" />

<meta property="og:image" content="http://domain/pineapple-pizza-slice.jpg" />

<meta property="og:url" content="http://domain/pineapple-pizza-slice" />

<meta property="og:description" content="Cheese and fruit, a tropical sensation" />

<meta property="og:site_name" content="FDGL October 2011 App" />

snip

Custom Object – Creating an instance

Page 24: What's New on The Facebook Platform, October 2011

24

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions will need to be submitted and approved by Facebook

• FB have proposed a 48-hour turnaround

• Positive actions preferred (so probably no Unlike action, sorry!)

Set up Custom ActionsUse the massive UI in the Facebook Developer App. It’s seriously huge.

Page 25: What's New on The Facebook Platform, October 2011

25

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

SYNCAPSE | New York | Toronto | London | Portland

1. Choose the type of data to Display and the linked Action.

2. Choose a Style

3. Set up sorting and captions

4. Preview

Set up Aggregations

Page 26: What's New on The Facebook Platform, October 2011

26

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

SYNCAPSE | New York | Toronto | London | Portland

Users will see Aggregation Previews in the Auth Dialog.

1. Create Preview Objects• These are just dummy

Objects for presentation

2. Create Preview Actions• Link Actions to Preview

Objects

Set up Aggregation Previews

Page 27: What's New on The Facebook Platform, October 2011

27

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

SYNCAPSE | New York | Toronto | London | Portland

Aggregation Example

Aggregations show on a user’s Timeline after they have completed at least 6 actions.

Page 28: What's New on The Facebook Platform, October 2011

28

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

SYNCAPSE | New York | Toronto | London | Portland

Get publish_actions permission from the user.

Create an Action instance: Graph API & JS SDKvar url = ‘/me/my_app_ns:action_id?object_type=https://object/opengraph/url’;

FB.api(url, 'post', function(response) { console.log(response); });

A Real-ish Example:POST /me/my_ns:chow_down_on?pizza_slice=http://domain/pineapple-pizza-slice

Custom Actions – Creating an instance

Page 29: What's New on The Facebook Platform, October 2011

29

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

SYNCAPSE | New York | Toronto | London | Portland

• Ticker & Ticker Fly-Out

• News Feed• If promoted from the Ticker

• Timeline – Feed Stories• If recent and not yet aggregated

• Timeline – Featured Stories• If user chooses to highlight the story

• Timeline – Recent Activity• If app used frequently/recently (unclear)

• Timeline – Aggregations• If > 6 Actions taken by the user

Let’s have a look!

Custom Actions – Where do they show?

Page 30: What's New on The Facebook Platform, October 2011

30

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions, Ticker & Fly-out

Page 31: What's New on The Facebook Platform, October 2011

31

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions in News Feed

This story was aggregated, nice.

Page 32: What's New on The Facebook Platform, October 2011

32

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions on Timeline:Feed Stories

A Single Action

Multiple Actions

Page 33: What's New on The Facebook Platform, October 2011

33

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions on Timeline:Featured Story

Users can choose to Feature a story on their Timelines. I love pizza.

Page 34: What's New on The Facebook Platform, October 2011

34

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions on Timeline:Recent Activity

Page 35: What's New on The Facebook Platform, October 2011

35

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

SYNCAPSE | New York | Toronto | London | Portland

Custom Actions on Timeline:Aggregations

Page 36: What's New on The Facebook Platform, October 2011

36

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

SYNCAPSE | New York | Toronto | London | Portland

Open Graph BetaIn Use By

Lots of Media partners:• Netflix• Spotify• The Guardian• The Independent• Yahoo!• And others

See more here:https://developers.facebook.com/showcase/

Page 37: What's New on The Facebook Platform, October 2011

37

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 38: What's New on The Facebook Platform, October 2011

38

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

SYNCAPSE | New York | Toronto | London | Portland

Roadmapping

FBML Hell to End. JOY!• No bugfixes after Jan. 1st 2012

– Except for security fixes

• All FBML endpoints smashed by sledgehammers on June 1st 2012

Other dates• Nov. 1st, 2011: manage_notifications permission required to, yes, manage notifications

• Dec. 1st, 2011: Dashboard APIs shut down & App Bookmark URL removed

• Jan. 1st, 2012

– FB.Data JS SDK APIs removed

– FB.Canvas.setAutoResize renamed to FB.Canvas.setAutoGrow

– Apps auto-migrated to Requests 2.0

• Feb. 1st, 2012: canvas_name removed from App properties in favor of namespace

Page 39: What's New on The Facebook Platform, October 2011

39

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

SYNCAPSE | New York | Toronto | London | Portland

IF I TALKED REALLY FAST, WE MAY HAVE TIME FOR QUESTIONS. DO WE? And see you next time!

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