Versi Graph API

Application Restriction Info

Membaca

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

Parameter

Titik akhir ini tidak memiliki parameter.

Kolom

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

Membuat

Anda tidak dapat melakukan operasi ini pada titik akhir ini.

Memperbarui

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.

Anda tidak dapat melakukan operasi ini pada titik akhir ini.

Menghapus

Anda tidak dapat melakukan operasi ini pada titik akhir ini.