Commands‎ > ‎

FQL

Description

Perform a custom FQL Query.

Parameters

 1 (required) Text FQL Statement.  This can be any FQL statement.  The special keywords [me] and [flist] can be used to insert the Facebook ID of the current user and the ID's of those in the FLIST (if specified).
 2 (optional) FLIST Friend List.

See the syntax page and the parameter defaults page for information on setting your default parameters.

Output

The output will be listed in three columns: INDEX, FIELD & VALUE

Preferences

See the general preferences page for a list of preferences that apply to all (or most) commands.

Notes

Examples

List all of your notes and their titles:
fbcmd FQL "SELECT note_id,title FROM note WHERE uid=[me]"

List your single friends:
fbcmd FQL "SELECT name FROM user WHERE uid IN [flist] AND relationship_status='single'" =all

Comments