0
我想通過應用在Facebook朋友的牆上發佈消息。我得到了Facebook的朋友名單和一些信息,如身份證,生日,姓名,電子郵件,圖像,性別。通過Android應用發佈消息在Facebook朋友的牆上
我粘貼在這裏一些代碼,用來
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 /響應(1420):{」 ERROR_CODE「:101, 「error_msg」:「無效的應用程序 ID」,「request_args」:[{「key」:「method」,「value」:「stream.publish」},{「key」:「format」,「value」: 「json」},{「key」:「target_id」,「value」:「100000739061115」},{「key」:「attachment」,「value」:「{\」message \「:\」很多 更多退貨「}」}]}「
我的問題是:
- 是可以通過Facebook好友的牆壁應用發佈的任何消息?如果是,請提供一些方法。
在此先感謝 請幫助