我正在做一个示例的Facebook应用程序,我只是一个文件发布到一个特定的人,而我这样做,我得到了像..如何解决OAuthException,而我张贴在facebook上的消息
05-27 14:33:51.806: DEBUG/Response(2211): {"error":{"type":"OAuthException","message":"(#803) Some of the aliases you requested do not exist: friends"}}
代码:
Bundle b = new Bundle();
accesstoken = facebook.getAccessToken();
b.putString("method", "read_stream");
b.putString("attachment","{\"name\":\"" + "\",\"href\":\"google.co.in"; + "\",\"description\":\"" + "\",\"media\":[{\"type\":\"image\",\"src\":\"" + "" + "\",\"href\":\"" + "\"}]}");
String response = facebook.request("friend_id", b, "POST");
如果你更专一,也许专家可以提供帮助。例如,你的代码是什么? – 2011-05-27 09:21:24
Bundle b = new Bundle(); accesstoken = facebook.getAccessToken(); b.putString(“method”,“read_stream”); b.putString(“attachment”,“{\”name \“:\”“\t +”\“,\”href \“:\”http://www.google.co.in“ \t \t \t \t \t \t \t \t \t + “\” \ “描述\”:\ “” \t \t \t \t \t \t \t \t \t + “\” \ “媒体\”:[{\ “类型\”:\ “image \”,\“src \”:\“” \t \t \t \t \t \t \t \t \t + “” \t \t \t \t \t \t \t \t \t + “\” \ “HREF \”:\ “” \t \t \t \t \t \t \t \t \t + “\”}]}“); String response = facebook.request(“friend_id”,b,“POST”); – BenTen 2011-05-27 10:23:52