[英]Post a message on facebook friend's wall in through Android applcation
我想通過應用程序在Facebook朋友的牆上發布消息。 我正在獲取Facebook朋友列表以及一些信息,例如ID,生日,姓名,電子郵件,圖像,性別。
我在這里粘貼一些使用的代碼
Bundle parameters = new Bundle();
JSONObject attachment = new JSONObject();
try {
attachment.put("message", "Many more returns of the day");
} catch (JSONException e) {
}
parameters.putString("attachment", attachment.toString());
parameters.putString("target_id", iddd); // target Id in which you need to Post
parameters.putString("method", "stream.publish");
String response = authenticatedFacebook.request(parameters);
Log.v("response", response);
運行后,我得到此錯誤:
“ V / response(1420):{” error_code“:101,” error_msg“:”無效的應用程序ID。“,” request_args“:[{” key“:”方法“,” value“:” stream.publish“} ,{“ key”:“ format”,“ value”:“ json”},{“ key”:“ target_id”,“ value”:“ 100000739061115”},{“ key”:“ attachment”,“ value”: “ {\\” message \\“:\\”一天中有很多返回\\“}”}]}“
我的問題是:
預先感謝,請幫助
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.