Versione API Graph

Application Restriction Info

Lettura

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}"
}

Parametri

Questo endpoint non dispone di parametri.

Campi

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

Creazione

Non puoi eseguire questa operazione in questo endpoint.

Aggiornamento

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.

Non puoi eseguire questa operazione in questo endpoint.

Eliminazione

Non puoi eseguire questa operazione in questo endpoint.