簡體   English   中英

通過Android應用程序在Facebook朋友的牆上發布消息

[英]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 \\“:\\”一天中有很多返回\\“}”}]}“

我的問題是:

  1. 可以通過應用程序在Facebook朋友的牆上發布任何消息嗎? 如果是,請提供一些方法。

預先感謝,請幫助

在互聯網上閱讀了類似的問題后,自2013年2月起,Facebook似乎不再允許通過其SDK在朋友的牆上發布。
資料來源:
來源1
來源2

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM