Exforsys.com
 

Sponsored Links

 

Facebook Development Tutorials

 
Home Tutorials Facebook Development
 

Facebook Query Language - FQL

 

It may interest you to know that the information that you can obtain from Facebook is actually stored in a database, and that's where FQL comes in. So, instead of using the API methods, we can query the tables in the database to obtain the information that we require.



For example, if you want the first name, surname, and birthday of each of your friends, then you can use the following query in the API Test Console:


     SELECT first_name, last_name,birthday
     FROM user
     WHERE uid IN (  SELECT uid1
                     FROM friend
                     WHERE uid2=614902533)


And don't forget to replace my id (614902533) with your own because you can only use the details of friends of the logged in user, that is you. Now, we still need to use the API, but for this, we only need one method—fql.query:


fb012.png


You'll realize of course, that this means that you're not limited to the information supplied by the API methods and the FBML tags. You're actually able to extract the exact data that you want.



Now that you're conversant with the Facebook Platform, you will want to create your first Facebook application. However, before you do that, you'll need to obtain the Facebook Client Libraries.



Read Next: Obtaining the Facebook Client Libraries



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape