我有閱讀飼料工作,找回我應該的一切,它看起來像下面列出的陣列:如何閱讀單個狀態更新,評論或類似內容?
我的問題是,我想要檢索單個消息。我試過了:
// what I think should work - fails
$msgData = $facebook->api("/$fb_id/posts/$msgToken", 'GET', $parameters);
// link in msg (below) but fb gives "unknown browser" error message
$msgData = file_get_contents("http://www.facebook.com/$fb_id/posts/$msgToken");
// as per fb docs but this fails too...
$msgData = file_get_contents("https://graph.facebook.com/$msgToken");
那麼,當你知道消息ID時只有一條消息的真正方法是什麼?
[0] => Array
(
[id] => 100002222222222_209088888888888
[from] => Array
(
[name] => My dog
[id] => 100002222222222
)
[message] => this is a test msg...
[picture] => http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=999999999999999...
[link] => http://www.domain.com/
[name] => Application Name
[caption] => Caption of for this post
[description] => A description of this post
[icon] => http://www.facebook.com/images/icons/default_app_icon.gif
[actions] => Array
(
[0] => Array
(
[name] => Comment
[link] => http://www.facebook.com/100002222222222/posts/209088888888888
)
[1] => Array
(
[name] => Like
[link] => http://www.facebook.com/100002222222222/posts/209088888888888
)
)
[privacy] => Array
(
[description] => Friends
[value] => ALL_FRIENDS
[allow] => 0
[deny] => 0
)
)
你會得到什麼錯誤? – 2011-12-25 15:53:28