Reading Facebook wall returns an empty array

假装没事ソ 提交于 2019-12-11 10:29:08

问题


I am trying to read a user's wall, not news feeds, with PHP, and I always get an empty array from this:

$api_call = array(
    'access_token'=>$facebook->getAccessToken()
);

try{
    $wall= $facebook->api("$uid/feed/","get",$api_call);
} catch (Exception $e){}

Any idea what is wrong here?


回答1:


You need to have the read_stream extended permission if you want to see posts other than those with visibility set to 'Public'



来源:https://stackoverflow.com/questions/7634587/reading-facebook-wall-returns-an-empty-array

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!