40
The Open Graph

Og presentation

Embed Size (px)

Citation preview

Page 1: Og presentation

The Open Graph

Page 2: Og presentation

The Open Graph

• What is Open Graph and how do we

use it?

• Implementation for project

managers.

• Implementation for developers.

Page 3: Og presentation

What is the Open Graph?

• Timeline

• Ticker

• Newsfeeds

Page 4: Og presentation

What is the Open Graph?

User Interaction

Page 5: Og presentation

What is the Open Graph?

Verbs

Darren Jones cooked a Chocolate Cake

Page 6: Og presentation

What is the Open Graph?

Darren Jones cooked a Chocolate

Cake

Action Object

Page 7: Og presentation

What is the Open Graph?cooked Chocolate

CakeIs cooking

Has cooked

Are cooking

Represented by URLe.g. example.com/chocolate-cake/

fb:recipe = URL

og:title = Chocolate Cake

Action Object

Page 8: Og presentation

Implementation for Project Managers

Page 9: Og presentation

Implementation for Project Managers

Page 10: Og presentation

Implementation for Project Managers

User Interaction

Open Graph API

Page 11: Og presentation

Implementation for Project Managers

• Frictionless Darren is listening to Circle of Life on Spotify

• User initiated Darren just entered a competition at Boots No7

Page 12: Og presentation

Implementation for Project Managers

Additional permissions

publish_actions

Page 13: Og presentation

Implementation for Project Managers

The referral dialog

publish_actions

Page 14: Og presentation

Implementation for Project Managers

Setting up actions and objects in the Facebook Developer Panel

Page 15: Og presentation

Implementation for Project Managers

Page 16: Og presentation

Implementation for Project Managers

Page 17: Og presentation

Implementation for Project Managers

Page 18: Og presentation

Implementation for Project Managers

Page 19: Og presentation

Implementation for Project Managers

Page 20: Og presentation

Implementation for Project Managers

Page 21: Og presentation

Implementation for Project Managers

Page 22: Og presentation

Implementation for Project Managers

Page 23: Og presentation

Implementation for Project Managers

Page 24: Og presentation

Implementation for Project Managers

Page 25: Og presentation

Implementation for Project Managers

Page 26: Og presentation

Implementation for Project Managers

Page 27: Og presentation

Implementation for Project Managers

Page 28: Og presentation

Implementation for Project Managers

Page 29: Og presentation

Implementation for Project Managers

Key things to note:

Aggregations must be set up for actions and objectsAggregations will not work unless correct og tags are in place

Page 30: Og presentation

Implementation for Project ManagersWhat have we covered so far?

Opengraph channels (Timeline/Newsfeed/Ticker)

Actions and objects and how to set them up

Types of action (frictionless/user initiated)

Permissions (publish_actions) & Authenticated Referrals

Aggregations

Page 31: Og presentation

Implementation for Developers

It’s really quick, without getting too technical. Promise!

Page 32: Og presentation

Implementation for Developers

OpenGraph mechanics

Page 33: Og presentation

Implementation for Developers

Publishing to the OpenGraph

OG tags must be in place namespace:action

Facebook must be able to access the site – this means port forwarding!

Probably a good idea to re-lint every now and again as things change

Your own actions will show in ticker only when app is sandboxed

There is a limit to actions shown (roughly 1 minute)

Only developers can publish actions and see/accept publish_actions dialog

Page 34: Og presentation

Implementation for Developers

Publishing to the OpenGraph

curl -F 'access_token=' \ -F 'article=http://example.com/article-slug/' \ 'https://graph.facebook.com/me/lastampa:read'

Page 35: Og presentation

Implementation for Developers

Publishing to the OpenGraph

{"id" : 2579038217}

Page 36: Og presentation

Implementation for Developers

Reading from the OpenGraph

GET

https://graph.facebook.com/me/namespace:action

Page 37: Og presentation

Implementation for Developers

Reading from the OpenGraph

Page 38: Og presentation

Implementation for Developers

That’s actually all you need to do!

Page 39: Og presentation

Implementation for Developers

Once all of this is in place, we need to submit our verbs to

Facebook.

They will not approve any dev apps or incomplete applications. So submission is the last thing to

do.https://developers.facebook.com/docs/opengraph/checklist/

Page 40: Og presentation

Happy testing!