繁体   English   中英

在Facebook中发送邮件时丢失邮件或附件错误

[英]Missing message or attachment error while sending message in Facebook

我正在将Facebook集成到我的应用程序中,我可以轻松地做,但是当我尝试在墙上发布带有超链接的消息时我遇到了问题,当我尝试这样做时,我收到了Missing消息或附件OauthException代码100,我能够发布没有超链接的消息。 这是我用于在墙上发布的代码:

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");`

谁能告诉我哪里出错了? 谢谢。

尝试做类似的事情:

Bundle parameters = new Bundle();
parameters.putString("message", "Messages");
parameters.putString("name", "click");
parameters.putString("link", "http://www.facebook.com");
response = mFacebook.request("me/feed", parameters, "POST");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM