簡體   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