25. FQL
$query = “
SELECT uid, name, pic FROM user
WHERE uid IN (
SELECT uid2 FROM friend
WHERE uid1 = $user
) AND is_app_user
“;
$users = fql.query($query);
26. Why FQL?
• reduce the number of requests necessary
• reduces bandwidth and parsing costs
• consistent, unified interface
41. 2b. edit app settings
1. fill in application name
2. check to agree terms
3. show optional fields
4. fill in callback url ( real url of your app on
your server)
5. fill in canvas page url ( virtual url of your app
on facebook ) and make sure it is Available
42. Canvas Page URL Callback URL
http://funp.com/apps/funpresent/ http://example.com/funpresent/
request request
Your
facebook App
Server
43. 2c. edit app settings
6. select “yes” for Can your application be
added on Facebook?
7. check “users” for Who can add your
application to their Facebook account?
8. check Developer Mode
9. submit
44. 3. download the client lib
• # wget
http://developers.new.facebook.com/cl
ientlibs/facebook-platform.tar.gz
• # tar xvf facebook-platform.tar.gz