Facebook API for Developers : Introducing the Facebook Platform
-
Upload
wildan-maulana -
Category
Technology
-
view
2.621 -
download
1
Transcript of Facebook API for Developers : Introducing the Facebook Platform
Facebook API for DevelopersIntroducing the Facebook Platform
Wildan [email protected]
http://workshop.openthinklabs.com
#2
What We Will Cover
● What Is Facebook?● A Brief History of Facebook● The Elements of the Facebook Platform● Facebook Markup Language
● REST API Calls● Facebook Query Language● Facebook JavaScript● Client Libraries
● Summary
What Is Facebook?
2007 Platform for Application DevelopmentLaunch
FBML
REST API FQL
Facebook JavaScript
A set of client programming libraries
Facebook API
A Brief History of Facebook
2002 2003
MySpace
SynapseFacemash.com
2004
thefacebook.com
2005
facebook.com
Focus on the college and university demographic(The 18–24 young adult market.)
2007
facebook.com
Open its doors to nonacademic users
The Elements of the Facebook Platform
Facebook Platform
Facebook Markup Language
REST API
Facebook Query Language
Facebook JavaScript
Set of Client Libraries for Different Programming Languages
Facebook Markup Language
<fb:dashboard><fb:help href="help.php">Application Help</fb:help></fb:dashboard>
REST API Calls
REST API Calls
facebook.auth
facebook.feed
facebook.friends
facebook.notifications
facebook.profile
facebook.users
facebook.events
facebook.groups
facebook.photos
Facebook Query Language
FQL
user
friend
group
group_member
event
event_member
photo
albumphototag
Table
Facebook Query Language
FQL
now()
strlen(string)
concat(string1, string2,…, stringN)
substr(string, start, length)
strpos(haystack, needle)
lower(string)
upper(string)
Functions
SELECT name, picFROM userWHERE uid = 7608007
Example
Facebook JavaScriptFBJS
<a href="#" onclick="new Dialog().showMessage('Dialog', 'This is the help messagefor this link');return false">Show Dialog Box</a>
Client Libraries
Client Libraries
ActionScript
ASP.NET
ASP (VBScript)
ColdFusion
C++
C#
D
Emacs LispLisp
Perl
PHP (4 and 5)
VB .NET
Windows Mobile Ruby
Python
Summary
Q&A
Reference
● Facebook API Developers Guide, Wayne Graham, firstPress