Facebook for Android
PI(implemented by us)
Using POST/GET requests
To provide the functionality for fetching i
nformation from a facebook
account. This information will be displayed on the Android phone interface using the
UI (described later).
We encountered a difficulty using the facebook API provided by facebook,
because the Android (Dalvi
k) OS does not support third party applications. We
suggested 2 ways to overcome this difficulty: either by using a proxy server, or by
implementing our own "facebook API", by manually writing the relevant methods we
need. We decided to go for the latte
So we have implemented our own Facebook API, using Http Post
Get commands to
the facebook rest server.
The API is implemented in the
Package, which consists of two Classes:
an abstraction layer for the Http Post
Get Commands to t
reset server, which simplify the construction of the Facbook API functions.
the implemented API functions.
Example for the
) implementation using
Command friends =
All of the available Facebook API functions are described at
g new function for the API can be done easily using the
Facebook Side Application
In order to create an application that fetches information from Facebook, it was
necessary to create a Facebook application, on the Facebo
ok side. This application is
Android Mobile Phone Application
and enabled us to get an application key
and secret, which we use to establish a connection with the Facebook
As part of the Facebook
side application, we have created a php website
esy of Joyent
free for one year).
This website is to be accessed by any
Facebook user wishing to use our Android application. Once a user enters the site, it
pops up an "allow" dialog, asking the user permission for the application to access
details. Once the user allowed this, the user can use the application on his Android
Furthermore, we have requested Facebook to publish our application, and have been
Purpose: To provide a convenient user interf
ace in Android
phone, for the
user. This means a user will be able to see all the functionality
of facebook that we provide, in such a way that is convenient to look at on a mobile
Method: Runs on Android Emulator. We use the Android U
I API, designing with
XML, using sources, designing a layout for each activity. The connection between
the different activities depends on the user pressing buttons such as: menu, back and
All together our implementations on the side of
the Android are done on the Android
Emulator. It includes the UI described, and the part of implementing our own
"facebook API". Finally, this gives the user a convent way to access facebook useful
module & Data
Overview of the Architecture in the Diagram
As can be seen in the diagram above, the program consists of 3 packages,
divided by functionality.
e includes the main
activities (for each page in the application) and services.
package uses the other packages
Each activity layout (the way
is visually arranged) is
bound with an equivalent xml lay
(having a similar name), which is located in a folder provided by the
package includes the classes containing functions handling
k server requests, this is the
facebook API implementation.
age includes a parser for the XML data coming
from the facebook server, and data structures to accommodate this data.
The packages work together using the appropriate functions in order to
draw the UI, fetch information from facebook, parse it and show it
The division to these packages allows future development and extension
to the project, in a convenient way, and independently to each aspect.