Jump to content

Facebook Query Language

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2a03:2880:20:3ff1:face:b00c:0:1 (talk) at 14:33, 1 August 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Facebook Query Language
First appearedFebruary 2007; 18 years ago (2007-02)
PlatformFacebook Platform
Websitehttp://developers.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,<ref>"Facebook Query Language (FQL)". Documentation. Facebook. Retrieved 2010-12-16.</ref> avoiding the need to use the Facebook Platform Graph API.<ref>"About Facebook-FQL". Tag info. Stack Overflow. Retrieved 2012-05-18.</ref> Data returned from an FQL query is in JSON format by default.

History

FQL was first made publicly available in February 2007.<ref>Steinberg, Ari (February 26, 2007). "Facebook Query Language (FQL)". The Facebook Blog. Facebook. Retrieved 2012-05-18.</ref>

FQL will no longer be available as of August 7, 2016, when Facebook API 2.0 is no longer available.<ref>Facebook Platform Changelog</ref> Facebook API versions newer than API 2.0 do not support FQL.

Features

Example

In the following query, four different types of data are retrieved from a single table (status) and for a single user ("me"): <source lang="sql"> SELECT status_id,message,time,source FROM `status` WHERE uid = me() </source>

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

References