Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Facebook Query Language
Query language

Facebook Query Language (FQL) is a query language that allows querying Facebook user data by using a SQL-style interface, avoiding the need to use the Facebook Platform Graph API. Data returned from an FQL query is in JSON format by default.

We don't have any images related to Facebook Query Language yet.
We don't have any YouTube videos related to Facebook Query Language yet.
We don't have any PDF documents related to Facebook Query Language yet.
We don't have any Books related to Facebook Query Language yet.
We don't have any archived web articles related to Facebook Query Language yet.

History

FQL was first made publicly available in February 2007.3 FQL was no longer available as of August 7, 2016, when Facebook API 2.0 was no longer available.4 Facebook API versions newer than API 2.0 do not support FQL.

Example

In the following query, four different types of data are retrieved from a single table (status) and for a single user ("me"):

SELECT status_id,message,time,source FROM `status` WHERE uid = me()

This query can run by querying the Facebook graph endpoint /fql with the parameters set to q=[FQL]

References

  1. "Facebook Query Language (FQL)". Facebook for Developers. Archived from the original on 2011-07-17. Retrieved 2018-05-12. https://web.archive.org/web/20110717031107/http://developers.facebook.com/docs/reference/fql/

  2. "About Facebook-FQL". Tag info. Stack Overflow. Retrieved 2012-05-18. https://stackoverflow.com/tags/facebook-fql/info

  3. Steinberg, Ari (February 26, 2007). "FQL". Facebook. Retrieved 2018-05-12. https://www.facebook.com/notes/facebook/fql/2245872130/

  4. "Changelog - Graph API". Facebook for Developers. Retrieved 2018-05-12. https://developers.facebook.com/docs/apps/changelog/