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