2013-02-25 32 views
0

不再是現有的我用下面的代碼張貼在留言板怎樣才能發佈到留言板作爲後到其他牆上的Facebook

Bundle parameters = new Bundle(); 
JSONObject attachment = new JSONObject(); 
attachment.put("message", "Messages"); 
attachment.put("name", "Get thisapp to send messages like this!"); 
attachment.put("href", link); 
parameters.putString("attachment", attachment.toString()); 
parameters.putString("message", msg); 
parameters.putString("target_id", 「friend id」); 
parameters.putString("method", "stream.publish"); 
String response = authenticatedFacebook.request(parameters);  
      Log.v("response***********", response); 

,但我得到了以下錯誤響應

02-25 16:12:24.365: V/response***********(6540): {"error_code":200,"error_msg":"Feed story publishing to other users is disabled for this application" 

我把這個鏈接https://developers.facebook.com/roadmap/#february-2013。如果Facebook不支持圖片API發佈到他人牆上,我怎麼能發佈到朋友牆上?

回答

0

如果Facebook不支持圖形API張貼到牆上別人,我怎麼可以張貼到牆上的朋友?

有沒有辦法,它被禁用,由於濫用的功能。如果Facebook說不,則解決方法是不合邏輯的。

0

您可以使用發佈飼料張貼在你的朋友,牆上.. 你可以按照這個鏈接 OAuthException when trying to Post to Friends Wall

+0

注意,鏈接只有答案氣餒,SO答案應該是一個搜索的終點解決方案(而另一個參考文獻的中途停留時間往往會隨着時間推移而過時)。請考慮在此添加獨立的摘要,並將鏈接保留爲參考。 – kleopatra 2013-07-31 10:03:32