Facebook API for Developers : Introducing the Facebook Platform
1. #2
Facebook API for Developers
Introducing the Facebook Platform
Wildan Maulana
wildan.m@openthinklabs.com
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
3. What Is Facebook?
Launch
2007 Platform for Application Development
Facebook API
FBML Facebook JavaScript
REST API FQL
A set of client programming libraries
4. A Brief History of Facebook
2002 2003 2004 2005 2007
MySpace thefacebook.com facebook.com
Synapse
Facemash.com facebook.com
Focus on the college and university demographic
(The 18–24 young adult market.)
Open its doors to nonacademic users
5. The Elements of the Facebook
Platform
Facebook Markup Language
REST API
Facebook Platform
Facebook Query Language
Facebook JavaScript
Set of Client Libraries for
Different Programming Languages
7. REST API Calls
facebook.auth
facebook.feed
REST API Calls facebook.friends
facebook.notifications
facebook.profile
facebook.users
facebook.photos
facebook.events
facebook.groups
8. Facebook Query Language
user
friend
group
FQL Table
group_member
event
event_member
photo
phototag album
9. Facebook Query Language
now()
strlen(string)
concat(string1, string2,…, stringN)
FQL Functions
substr(string, start, length)
Example
strpos(haystack, needle)
SELECT name, pic
FROM user lower(string)
WHERE uid = 7608007
upper(string)
10. Facebook JavaScript
FBJS
<a href="#" onclick="new Dialog().showMessage('Dialog', 'This is the help message
for this link');return false">Show Dialog Box</a>
11. Client Libraries
VB .NET ActionScript
ASP.NET
Windows Mobile Ruby
ASP (VBScript)
Client Libraries
ColdFusion
Python
C++
PHP (4 and 5) C#
Perl D
Lisp Emacs Lisp