图api配置文件feed(墙)显示假饲料id :(

时间:2012-02-12 09:36:11

标签: php facebook-graph-api

 

$profile_feed= $facebook->api("/me/feed?limit=4" . $access_token );    
foreach($profile_feed['data'] as $profile_feed) {
     echo "<p> " . $profile_feed['id'] . "</p>";
     echo "<p> " . $profile_feed['message'] . "</p>";
}

1 个答案:

答案 0 :(得分:0)

这是你想要做的吗? :

$profile_feed= $facebook->api("/me/feed?limit=4" . $access_token );    
foreach($profile_feed['data'] as $data) {
    echo "<p> " . $data['from']['name'] .  " with ID " . $data['from']['id'] . "</p>";
    echo "<p> " . $data['message'] . "</p>";
}