Home
= Dependencies =
- Qt framework
- libqjson
= Compiling =
Export the PKG_CONFIG_PATH:
You need this step just if your Qt is installed on some path out of /usr and /usr/local.
For example if your Qt have been installed on /opt/QtSDKv4.7
$ export PKG_CONFIG_PATH=/opt/QtSDKv4.7/lib/pkgconfig:/usr/lib/pkgconfig
So compile now
$ cd qfacebook
$ qmake && make
$ ls src/libqfacebook.so*
src/libqfacebook.so src/libqfacebook.so.1 src/libqfacebook.so.1.0 src/libqfacebook.so.1.0.0
= Testing =
You can use the token from your browser to test the QFacebook lib.
Just open the link http://developers.facebook.com/docs/api and click on some link inside it.
For example, inside the http://developers.facebook.com/docs/api, you can click on the link “https://graph.facebook.com/me/friends?access_token=…”
It will open the page with the list of your friends on Facebook.
On the navigation bar of the browser you can see the url https://graph.facebook.com/me/friends?access_token=“take this token to test the qfacebook :P”
Export the LD_LIBRARY_PATH to qfacebook libs on qfacebook/lib
$ cd qfacebook
$ export LD_LIBRARY_PATH=$PWD/lib
Now try to get your friends list:
./examples/getconnection/getconnection “put here the access token from the browser just to test” me friends
= ls qfacebook/examples =
- getobject: Example how to get some object(Album, User, Photo, etc) from Facebook.
Look at http://developers.facebook.com/docs/reference/api/ to understand what is a Facebook object.
$ ./qfacebook/examples/getobject/getobject
Use :getobject ‘access token’ ‘id of the object’
- getconnection: Example how to get some connection of some object. For example if some Photo object has the id 1234, to get its comments I could do
$./getconnection “access token” 1234 comments
or get my friends connection
$./getconnection “access token” me friends
Look at http://developers.facebook.com/docs/api to understand what is a connection.

