2013-05-16 20 views
0

發生錯誤:不支持的發佈請求。我創建了一個fb應用程序,該應用程序允許用戶單擊該按鈕(此按鈕位於我的應用程序中)將消息發送給應用程序用戶,並通知用戶接收方他有應用程序通知。我不知道我是否正確實施它。 我真的需要這件事情多虧了一些建議和指導......Facebook通知使用JS不支持的發佈請求

FB.getLoginStatus(function(response) { 
     if (response.status === 'connected') { 
      var accessToken = response.authResponse.accessToken;    
      FB.api('/'+254111161401649+'/notifications?'+accessToken+'&template=NewPosted&href=http://apps.facebook.com/lglinktest/', 'POST', {}, function (response) { 
       if (!response || response.error) { 
        console.log('Error occured:' + response.error.message); 
       }else{ 
        console.log('Post ID: ' + response.id); 
       } 

      });  
     } 
    }); 
+0

254111161401649 <--- my app_id – Farnsbert

+0

它已經解決了 – Farnsbert

回答

0

解決呢!!!!我需要的僅僅是獲得正確的應用訪問令牌

相關問題