# Facebook Query Language

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Facebook_Query_Language
> Markdown URL: https://mediated.wiki/source/Facebook_Query_Language.md
> Source: https://en.wikipedia.org/wiki/Facebook_Query_Language
> Source revision: 1271485965
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Facebook Query Language First appeared February 2007; 19 years ago (2007-02) Platform Facebook Platform Website developers.facebook.com Influenced by SQL

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

## History

This section needs expansion. You can help by adding missing information. (May 2012)

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. **[^](#cite_ref-1)** ["Facebook Query Language (FQL)"](https://web.archive.org/web/20110717031107/http://developers.facebook.com/docs/reference/fql/). *Facebook for Developers*. Archived from [the original](https://developers.facebook.com/docs/reference/fql/) on 2011-07-17. Retrieved 2018-05-12.

1. **[^](#cite_ref-2)** ["About Facebook-FQL"](https://stackoverflow.com/tags/facebook-fql/info). *Tag info*. [Stack Overflow](/source/Stack_Overflow). Retrieved 2012-05-18.

1. **[^](#cite_ref-3)** Steinberg, Ari (February 26, 2007). ["FQL"](https://www.facebook.com/notes/facebook/fql/2245872130/). *[Facebook](/source/Facebook)*. Retrieved 2018-05-12.

1. **[^](#cite_ref-4)** ["Changelog - Graph API"](https://developers.facebook.com/docs/apps/changelog/). *Facebook for Developers*. Retrieved 2018-05-12.

## External links

- [Official Homepage](https://developers.facebook.com/)

v t e Meta Platforms Products, services Facebook Features Bluetooth Beacon Dating Feed EdgeRank Reels Gaming Graph Search Instant Articles Like button Live Lookalike audience Onion address Platform Connect Safety Check Stories Watch list of original programs Zero Instagram Hyperlapse IGTV Threads Hardware Portal Meta Quest Quest 1 Quest 2 Quest 3 Pro Touch Ray-Ban Meta Other Express Wi-Fi Free Basics Messenger Kids Rooms Mapillary Meta AI Meta Horizon OS Meta Superintelligence Labs Moltbook Supernatural WhatsApp Workplace Former Atlas Solutions Credits FriendFeed Giphy Facebook Beacon Facebook Home HTC First M Oculus Go Oculus Rift CV1 S Onavo Paper Slingshot tbh Wirehog People Founders Mark Zuckerberg (28% equity) Dustin Moskovitz (7%) Eduardo Saverin (5%, formerly) Chris Hughes (1%, formerly) Andrew McCollum Board Current Mark Zuckerberg Marc Andreessen John D. Arnold Patrick Collison John Elkann Drew Houston Nancy Killefer Robert M. Kimmitt Dina Powell Hock Tan Dana White Tony Xu Former Sheryl Sandberg Peter Thiel Executive officers Current Mark Zuckerberg (Chairman and CEO) Javier Olivan (COO) Andrew Bosworth (CTO) Chris Cox (CPO) Joel Kaplan (Chief Global Affairs Officer) Jennifer Newstead (Chief Legal Officer) Alexandr Wang (Chief AI Officer) David Wehner (Chief Strategy Officer) Former Sean Parker (4%, formerly) Owen Van Natta Gideon Yu Adam D'Angelo Nick Clegg Chris Kelly Bret Taylor Sheryl Sandberg Mike Schroepfer David Ebersman Marne Levine Alex Stamos Oversight Board Members Catalina Botero Marino, Co-Chair (2020–) Jamal Greene, Co-Chair (2020–) Michael W. McConnell, Co-Chair (2020–) Helle Thorning-Schmidt, Co-Chair (2020–) Afia Asantewaa Asare-Kyei (2020–) Evelyn Aswad (2020–) Endy Bayuni (2020–) Katherine Chen (2020–) Nighat Dad (2020–) Tawakkol Karman (2020–) Maina Kiai (2020–) Sudhir Krishnaswamy (2020–) Ronaldo Lemos (2020–) Julie Owono (2020–) Emi Palmor (2020–) Alan Rusbridger (2020–) András Sajó (2020–) John Samples (2020–) Nicolas Suzor (2020–) Suzanne Nossel (2021–) Khaled Mansour (2022–) Pamela San Martin (2022–) Paolo Carozza (2022–) Kenji Yoshino (2023–) Board of Trustees Stephen Neal, Chair (2021–) Kristina Arriaga (2020–) Cherine Chalaby (2020–) Wanda Felton (2020–) Kate O'Regan (2020–) Robert Post (2020–) Former members Pamela S. Karlan (Board Member, 2020–2021) Paul G. Haaga Jr. (Board of Trustees Chair, 2020–2021) Notable employees Current Lars Rasmussen (Graph Search director) Naomi Gleit (head of product) Nicola Mendelsohn (head of Global Business Group) Adam Mosseri (head of Instagram) Thomas Reardon (Reality Labs director) Former Blake Ross (Director of Product) Ted Ullyot (VP, General Counsel, and Secretary) Hugo Barra (VP of Reality Labs) John Carmack (CTO of Reality Labs) Matt Cohler Charlie Cheever Randi Zuckerberg Yishan Wong George Hotz Joe Lockhart Andrei Alexandrescu (research scientist) Chamath Palihapitiya (VP of User Growth) Elliot Schrage (VP of Global Communications, Marketing and Public Policy) Frances Haugen (Product Manager of Civic Integrity Team) Sarah Wynn-Williams (Director of Public Policy) Open source Apache Cassandra Apache Hive Apache Thrift Buck FQL Hack HHVM HipHop for PHP Infer MyRocks Open Compute Project Phabricator React React Native RocksDB Scribe Telecom Infra Project Tornado Mass media The Facebook Effect The Accidental Billionaires The Social Network The Great Hack Careless People "Instagram" (Dean song) The Social Reckoning Concepts Influencer Activity stream Social graph Friending and following Reblogging Fan-gating Facebook diplomacy Instapoetry Model (person)#Instagram model Filter Instagram face Business History of Facebook IPO Timeline of Instagram #Graduation2020 Timeline of WhatsApp Acquisitions f8 conference Censorship Criticism Cambridge Analytica data scandal 2020 ad boycotts 2021 company files leak Privacy Content management Problematic social media use Litigation Young v. Facebook, Inc. (2011) Fraley v. Facebook, Inc. (2016) Force v. Facebook, Inc. (2019) Facebook, Inc. v. Duguid (2021) Federal Trade Commission v. Meta Platforms, Inc. (ongoing) Unions Lists Most-followed Facebook pages most-followed Instagram accounts most-liked Instagram posts Related Priscilla Chan (wife of Mark Zuckerberg) Chan Zuckerberg Initiative Aquila Internet relay drone Willow Village WaveGroup Sound 2021 Facebook outage Instagram tourism

This Web-software-related article is a stub. You can help Wikipedia by adding missing information.

- [v](https://en.wikipedia.org/wiki/Template:Web-software-stub)
- [t](/source/Template_talk%3AWeb-software-stub)
- [e](https://en.wikipedia.org/wiki/Special:EditPage/Template:Web-software-stub)

---
Adapted from the Wikipedia article [Facebook Query Language](https://en.wikipedia.org/wiki/Facebook_Query_Language) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Facebook_Query_Language?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
