[英]Updating Facebook app settings via Graph API
我在使用Javascript SDK通過Graph API更新應用設置時遇到問題。 我按照文檔( https://developers.facebook.com/docs/graph-api/reference/app )嘗試了這段代碼:
FB.api(
"/APP_ID/?access_token=APP_ID|APP_SECRET",
"POST",
{
"object": {
"canvas_url": "Test about text",
"migrations": "{'secure_stream_urls': true}",
"restrictions": "{'age': '21+', 'type': 'alcohol'}"
}
},
function (response) {
if (response && !response.error) {
console.log(response);
}
}
);
答案是true
但我發現Facebook開發人員的應用程序設置頁面沒有任何變化(無論我試圖改變哪些屬性)。
有人可以幫忙嗎?
不要使用object
-
FB.api(
"/APP_ID/?access_token=APP_ID|APP_SECRET",
"POST",
{
"canvas_url": "Test about text",
"migrations": "{'secure_stream_urls': true}",
"restrictions": "{'age': '21+', 'type': 'alcohol'}"
},
function (response) {
//if (response && !response.error) {
console.log(response); // console the complete response for any errors
//}
}
);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.