FQL:permissions

From Facebook Developer Wiki (FbDevWiki.com)
Jump to: navigation, search

Query this table to return the extended permissions the current user has granted to the application.

Note: You can cache this data and subscribe to real time updates on its fields.

Columns

Highlighted rows are indexable / searchable and one is usually required in the WHERE portion of the query.

Name Type Description
uid int The user ID of the current user, or the page_id of the Page.
[PERMISSION_NAME] bool Indicates whether the user granted your application the extended permission.

Example

Test if the current user has publish_stream and read_stream permissions.

SELECT publish_stream,read_stream FROM permissions WHERE uid=me()

Returns a "1" for each permission that has been granted.

Notes/Bugs/Gotchas

You can query using a Facebook UID, but if you query for a user other than the current one or for a page not owned by the current user, you get an empty result.

Personal tools
Namespaces
Variants
Actions
Navigation
Graph API
FQL
Toolbox