4
我在我的应用程序中集成了Facebook并且我可以轻松完成,但是当我尝试在墙上发布包含超链接的消息时,试图做到这一点我得到Missing消息或附件OauthException代码100,我能够发布没有超链接的消息。这是我用来贴在墙上的代码:在Facebook上发送消息时缺少消息或附件错误
JSONObject attachment = new JSONObject();
attachment.put("message", "Messages");
attachment.put("name", "click");
attachment.put("href", "http://www.facebook.com");
Bundle parameters = new Bundle();
parameters.putString("attachment",attachment.toString());
response = mFacebook.request("me/feed", parameters,"POST");`
任何人都可以告诉我我要去哪里吗? 谢谢。
@尼拉吉感谢您的建议,但我需要显示在message.I超链接认为链路密钥是不会这样做的。 – dharan 2012-08-10 13:13:31
您使用'link'对象发布超链接。它将使用OpenGraph标记来呈现链接中的信息。使用API Explorer来测试它。 – 2012-08-13 13:40:57