0

我正在使用Facebook的Javascript SDK,我需要一種讓用戶發佈到特定頁面的方式來模擬其擁有的頁面之一。發佈爲用戶完美的作品,但我似乎可以得到這個權利:FB圖形API:以頁面形式發佈到其他頁面

var data = { 
    access_token: access, 
    message: "Hello" 
}; 

FB.api("/" + page_id + "/feed", "post", data, function(response) { 
    console.log(response); 
}); 

PAGE_ID是特定的頁面我要張貼到的數字ID,並訪問是從檢索的access_token 「me/accounts」api,使用manage_pages授權。

我從響應變量收到輸出是以下對象:

error: Object 
    code: 200 
    message: "(#200) Posts where the actor is a page cannot also include a target_id" 
    type: "OAuthException" 

我無法找到這個問題的答案的任何地方。這僅僅是不可能的嗎?它不可能。

回答

2

快速google搜索表明,這是不可能的:

https://stackoverflow.com/questions/9706873/post-on-wall-fan-page-to-a-fan-page-that-likes

How to Post with Application Name

也,看看老REST API文檔:https://developers.facebook.com/docs/reference/rest/stream.publish/

target_id

注:如果你指定一個頁面ID作爲uid,你不能指定一個 target_id。頁面不能寫在其他用戶的牆上。

注意:您無法發佈到應用程序配置文件頁面的牆上。

+0

我想這是真的:( – 2012-04-21 01:02:31