我制作了一个 Facebook 应用程序,现在我们从服务器更改它,然后我再次运行代码来测试它,我发现除了一个 FQL 之外它运行良好。我通过 ->(/me) 获取用户信息
FLQ 有效(我使用 Facebook 工具进行了测试)。我的连接和范围是正确的。任何想法?
我留给你我的fql
$scope = 'email,read_stream';
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
));
// Get the current user
$user = $facebook->getUser();
$fql = "SELECT type, source_id, share_count, likes, permalink, description, post_id, message, target_id, created_time, attachment
FROM stream
WHERE source_id = me() and type in (46, 80)
order by created_time desc
LIMIT 500";
$param = array(
'method' => 'fql.query',
'query' => $fql,
'callback' => ''
);
$fqlResult = $facebook->api($param);
print_r($fqlResult);