2014-07-20 26 views
0

在Facebook的SDK(JavaScript的),该API页面标签添加到页面的Facebook页面标签:添加使用JavaScript SDK

/* make the API call */ 
FB.api(
"/{page-id}/tabs", 
"POST", 
{ 
    "object": { 
     "app_id": "{app-id}" 
    } 
}, 
function (response) { 
    if (response && !response.error) { 
    /* handle the result */ 
    } 
} 
); 

我已经试过这个API调用,因为它是,但它不工作中,错误消息说:

(#100),其中,仅必须提供

回答

0

我认为这是显而易见的,你只需要提供一个PARAMS“标签”或“APP_ID”之一参数

0
/* make the API call */ 
FB.api(
"/{page-id}/tabs", 
"POST", 
{ 
     "app_id": "{app-id}" 
    }, 
function (response) { 
    if (response && !response.error) { 
    /* handle the result */ 
    } 
} 
); 

这样通过。