阅读Facebook墙返回一个空数组 [英] Reading Facebook wall returns an empty array

查看:115
本文介绍了阅读Facebook墙返回一个空数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用PHP阅读用户墙,而不是新闻Feed,我总是从中获得一个空数组:

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){}

任何想法这里有什么问题? / p>

Any idea what is wrong here?

推荐答案

如果你想看到,你需要具有 read_stream 扩展权限除了公开设置为公开的人员之外的帖子

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

这篇关于阅读Facebook墙返回一个空数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆