0

我已经尝试过这种方式,但在选项卡中我找到了与我的应用程序相同的名称

FB.api('/' + pageId + '/tabs', 'post', {
      access_token: token,
      app_id: BT.fbAppId,
      custom_name:'mycoolname'
    }, function(response){
        if(response===true){

        }
        else{
          alert('Error on insert tab');
        }
});

请问你能帮帮我吗 ?

4

1 回答 1

1

I realized reading better the doc that you have to update after the insert like:

FB.api('/' + data.page_id + '/tabs/app_'+BT.fbAppId, 'post', {
  access_token: data.token,
  custom_name:BT.current.title
  }, function(response){
    if(response===true){
    }
    else{
      alert('Error on update tab');
    }
});
于 2012-12-07T18:26:34.633 回答