Graph API Version

Application Restriction Info

Reading

Demographic restrictions for a Facebook App

Example

To get restriction settings of your app, send a GET request to the /{app-id} endpoint with an app access token:

curl -i -X GET "https://graph.facebook.com/{app-id}?fields=restrictions&access_token={app-access-token}"

On success the following will be returned:

{ "restrictions": { "age": "21+", "type": "alcohol" }, "id": "{app-id}" }

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription
age
string

Age restrictions for the app. Can be one of the following values: 13+, 16+, 17+, 18+, 19+, or 21+

age_distribution
string

Age restrictions by location

location
string

Location restrictions for the app. Facebook uses 2 letter country codes.

type
string

Custom category restrictions for the app. Currently can only be set to alcohol.

Creating

You can't perform this operation on this endpoint.

Updating

To update a restriction, use the /{app-id}?restrictions parameter.

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.