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

age_distribution
string

Age restrictions by location

location
string

Location restrictions for the app

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

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.