For faster navigation, this Iframe is preloading the Wikiwand page for Facebook Query Language.

Facebook Query Language

Facebook Query Language
First appearedFebruary 2007; 17 years ago (2007-02)
PlatformFacebook Platform
Websitedevelopers.facebook.com
Influenced by
SQL

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

History

This section needs expansion. You can help by adding to it. (May 2012)

FQL was first made publicly available in February 2007.[3] FQL is 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.
  2. ^ "About Facebook-FQL". Tag info. Stack Overflow. Retrieved 2012-05-18.
  3. ^ Steinberg, Ari (February 26, 2007). "FQL". Facebook. Retrieved 2018-05-12.
  4. ^ "Changelog - Graph API". Facebook for Developers. Retrieved 2018-05-12.
{{bottomLinkPreText}} {{bottomLinkText}}
Facebook Query Language
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?