我正在尝试使用 Android 的官方 Facebook SDK 向用户墙发布消息。
parameters.putString("method", "feed");
parameters.putString("link", "www.example.com");
parameters.putString("name", "Example Web");
parameters.putString("description", "An example website for testing.
parameters.putString("message", etMessage.getText().toString());
facebook.dialog(this, "feed", parameters,
new DialogListener() {...
除消息外,对话中的所有内容都已成功解决。在对话框中,消息字段为空。
请帮忙, 谢谢!
最佳答案
消息字段已于 2011 年 7 月弃用,因为 Facebook 希望用户发布独特的内容。看这个blog post :
Breaking Change: "message" parameter ignored in Feed Dialog
On July 12, we are ignoring the message parameter in Feed Dialogs. This eliminates the ability to pre-fill stream stories (prohibited by Policy IV.2). This change encourages users to share authentic and relevant content with their friends.
关于android - Facebook Android-SDK 发布消息问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9147093/