圖形 API 版本

Application Restriction Info

閱讀中

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

參數

這個端點沒有任何參數。

欄位

欄位說明
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.

建立中

你無法在此端點執行此操作。

更新中

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.

你無法在此端點執行此操作。

刪除中

你無法在此端點執行此操作。