我怎样才能发布到朋友的墙上,因为在Facebook上不再存在Post to others wall

时间:2013-02-25 18:34:03

标签: android facebook-graph-api

我使用以下代码在朋友墙上发布

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发布到其他墙,我该如何发布到朋友墙?

2 个答案:

答案 0 :(得分:0)

  

如果Facebook不支持图形api发布到其他人的墙上,我该如何发布到朋友的墙上?

没有办法,因滥用该功能而被禁用。如果Facebook拒绝,则解决方法不合逻辑。

答案 1 :(得分:0)

您可以使用发布Feed在朋友的墙上发布.. 你可以点这个链接 OAuthException when trying to Post to Friends Wall