HOME

TheInfoList



OR:

__NOTOC__ Facebook Query Language (FQL) is a
query language Query languages, data query languages or database query languages (DQL) are computer languages used to make queries in databases and information systems. A well known example is the Structured Query Language (SQL). Types Broadly, query language ...
that allows querying
Facebook Facebook is an online social media and social networking service owned by American company Meta Platforms. Founded in 2004 by Mark Zuckerberg with fellow Harvard College students and roommates Eduardo Saverin, Andrew McCollum, Dustin M ...
user data by using a SQL-style interface, avoiding the need to use the
Facebook Platform The Facebook Platform is the set of services, tools, and products provided by the social networking service Facebook for third-party developers to create their own applications and services that access data in Facebook. The current Faceboo ...
Graph
API An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software Interface (computing), interface, offering a service to other pieces of software. A document or standa ...
. Data returned from an FQL query is in
JSON JSON (JavaScript Object Notation, pronounced ; also ) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays (or other ser ...
format by default.


History

FQL was first made publicly available in February 2007. FQL is no longer available as of August 7, 2016, when Facebook API 2.0 was no longer available. 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= QL'


References


External links


Official Homepage
Query languages Facebook software 2007 software {{web-software-stub