4
我遇到问题了。我想使用facebook api并在没有调用对话框的情况下发布到我的墙上。基本上我有一个应用程序,我希望人们能够共享应用程序,所以我想要发布特定的消息。我不断收到“方法未执行”的回复。下面是该帖子的代码。android facebook api post
//I tried this also ->>String path = "http://graph.facebook.com/me/feed";
String path = "https://api.facebook.com/method/stream.publish";
Bundle b = new Bundle();
//And i tried this -> b.putString("access_token",facebook.getAccessToken());
b.putString("message", "this is just a test...");
try {
String ret = facebook.request(path, b);
Toast.makeText(fmasterActivity.this, ret, Toast.LENGTH_LONG).show();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
谢谢你的权利。我已经知道了,但我很感激。对于android facebook sdk来说,可悲的是很少有文档。同样给一位老太太一台笔记本电脑,并告诉她“祝你好运,玩得开心”。 – 2010-11-05 10:56:31
的确如此。我花了几个小时,很多挫折才弄明白了这一点。 – Zarah 2010-11-06 07:56:41