Version API du graphe

Application Restriction Info

Lecture

Demographic restrictions for a Facebook App

Example

To get the 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}"
}

Paramètres

Ce point de terminaison n’a aucun paramètre.

Champs

ChampDescription
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.

Création

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

Mise à jour

To update a restriction, use the /{app-id}?restrictions={restrictions-json}&allow_cycle_app_secret=true parameter.

Note: This will invalidate all of your User access tokens. Users will need to log back into your app to restore access.

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

Suppression

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.