7 Developing Facebook Applications OSSW ICOSST 2009
7 Developing Facebook Applications OSSW ICOSST 2009
7 Developing Facebook Applications OSSW ICOSST 2009
Facebook Applications
By
M.ALI and
Aamir Latif
Application Development
Objective
• A very basic introduction to developing
applications with Facebook using PHP.
• Keep it simple.
• Goal is learning.
• Level:Basic
Application Development
Agenda
• Presentation [M.ALI] 20 mins
• Demonstration [Amir Latif] 15 mins
• Question/Answer 10 mins
Application Development
What is Facebook?
• Facebook is a web application that provides a
kind of social networking with people near
you.
• Facebook was founded by Mark Zuckerberg in
2004.
• Originally designed to connect different
colleges and universities.
• Facebook name has origin in magazine that
was distributed to new students
Application Development
Facebook facts
• World largest social network with over 350
million users.
• An average teen spends about 20 mins daily.
• More than 65 million active users at a time.
• Consists of more than 500,000 active
applications.
• 6.5 millions users access FB from mobile
• More facts on
http://www.facebook.com/press/info.php?statist
ics
Application Development
Facebook application
• Developing facebook application mean it is
accessible from FB.
• Application is exposed to millions of users
worldwide.
• There is a chance for the application to
become a popular one in FB.
• Applications can be social applications like
super wall,games like crazy taxi and quizzes.
Application Development
Facebook Applications
Some Popular Facebook
applications
Application Development
Farm Ville
Application Development
Facebook Platform
• Facebook platform is a framework for
developers to interact with the core features
of the facebook site.
• Anyone can developed an application in
Facebook by pointing their URL to
developers.facebook.com
• The idea was to enable everyone to provide
content to the facebook site.
• Provides web services
Application Development
1. Users’ machine
2. Facebook Server(s)
3. Application Server
Application Development
Client/Server Interaction
Browser
App Canvas
1. Browser makes request 5 . Facebook renders FBML to HTML
Facebook server
2. FB server calls App Server 3. App calls FB API 4. App server returns
through callback URL FBML
Facebook APIs
http://wiki.developers.facebook.com/index.php/API#API_Methods
FBML
http://wiki.developers.facebook.com/index.php/FQBML
FBML
Application Development
Comment Event
connection Family
friend group
photo user
URL: http://wiki.developers.facebook.com/index.php/FQL_Tables
Understanding FBML and IFRAMES
Application Development
Tags
• The goal of FBML is to support a versatile tag set in order to
help developers target these different settings.
– Social data tags e.g fb:name.
– Sanitization tags e.g fb:swf
– Design tags e.g fb:tabs
– Component tags e.g fb:comments
– Control tags e.g fb:visible-to-owner
URL:http://developers.facebook.com/specification.php
Application Development
FBML
FBML
• <fb:tabs>
<fb:tab-item href='http://apps.facebook.com/yourapp/myphotos.php' title='My
Photos' selected='true'/>
<fb:tab-item href='http://apps.facebook.com/yourapp/recentalbums.php'
title='Recent Albums' />
</fb:tabs>
• <fb:success>
<fb:message>Success message</fb:message>
This is the success message text.
</fb:success>
Application Development
FBML vs IFrames
FBML
• Is Quick; suitable for beginners
• Ease of access to the facebook elements
• Pages have nice URLs
IFrames
• Easier and faster for existing applications
• Faster experience for users over the long run and faster for AJAX
• Let you use the JavaScript, HTML, and standard
Application Development
Facebook Connect
URL: http://wiki.developers.facebook.com/index.php/Facebook_Connect
Application Development
Demonstration
Application Development
Q/A session