Top Banner
Facebook Platform 101 Sandro Turriate [email protected]
21
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Facebook Platform Atl

Facebook Platform 101

Sandro [email protected]

Page 2: Facebook Platform Atl

Facebook> 46 million active users

> half return daily

200,000 sign up daily

Page 3: Facebook Platform Atl

Facebook PlatformRelationships established

Immediate install

Viral

Funding

Page 4: Facebook Platform Atl

Facebook Platform

facebook

app server

1 32

1. Facebook contacts app server

2. App server uses facebook api

3. App server sends response

Page 5: Facebook Platform Atl

Haikus...

Haikus are easy

But sometimes they don’t make sense

RerigeratorFrom Threadless

Page 6: Facebook Platform Atl

Browse

Page 7: Facebook Platform Atl

New Haiku

Page 8: Facebook Platform Atl

Contribute

Page 9: Facebook Platform Atl

Profile Updates

Mini-Feed

Profile

Page 10: Facebook Platform Atl

How do people find it?

Page 11: Facebook Platform Atl

Getting Started

developer.facebook.comAPI Key

Secret key

Callback URL

Page 12: Facebook Platform Atl

URL mapping

apps.facebook.com/globalhaikuglobalhaiku.com/fb/

apps.facebook.com/globalhaiku/browseglobalhaiku.com/fb/browse

apps.facebook.com/globalhaiku/newglobalhaiku.com/fb/new

Page 13: Facebook Platform Atl

Where does it live?

Facebook and your server

callback url - globalhaiku.com/fb/

Page 14: Facebook Platform Atl

A Canvas page

response goes here

Page 15: Facebook Platform Atl

FBML or iframe

Page 16: Facebook Platform Atl

andEverything Else...

Canvas

Page 17: Facebook Platform Atl

Everything else...

<fb:wide><fb:narrow>

1 profile_box = '<fb:narrow>\ <img src="logo_narrow.gif" alt=""/>\ I am a poet</fb:narrow>\

<fb:wide>\ <img src="logo_wide.gif" alt=""/>\ I am a poet </fb:wide>'

2 facebook.setFBML(profile_box)

Page 18: Facebook Platform Atl

What about css?

<style>#gh_content { margin: 10px 20px' }#gh_content h1 { margin: 0 0 0 10px; }</style>

<div id=“gh_content”> <h1>Hi</h1></div>

Page 19: Facebook Platform Atl

Gotchas<fb:error> <fb:message> Error </fb:message> <ul><li>Error1</li></ul></fb:error> Won't render correctly

<fb:editor> Don't bother

<fb:redirect> POST should redirect

500 errors View source

Page 20: Facebook Platform Atl

Attribution

haikus... - http://www.threadless.com/product/623/Haikus_are_easy_but#zoom

f8 Facebook Platform Launch – http://flickr.com/photos/kohtz/535491752/

facebook canvas - http://developer.facebook.com/images/anatomy_frame.jpg

Page 21: Facebook Platform Atl

Thanks

Sandro [email protected]/blog