为了获得我想要的应用程序的功能,我需要开始使用FQL。
对于我正在使用的主流: -
$fb_news_feed = $facebook->api('/me/home');
FQL中返回相同JSON的等价物是什么。我目前的FQL低于
$fb_feed_params = array(
'method' => 'fql.query',
'query' => "SELECT post_id, actor_id, target_id, message, likes, created_time, type FROM stream WHERE filter_key = 'nf' AND is_hidden = 0 LIMIT 100",
);
$fb_news_feed = $facebook->api($fb_feed_params);
如何获取用户名等?我猜我必须像在mysql中那样进行某种连接吗?
答案 0 :(得分:0)
此查询应该这样做 -
SELECT name, username, pic from user WHERE uid IN (SELECT actor_id FROM stream WHERE filter_key = 'nf' AND is_hidden = 0 LIMIT 100)
或者你可以看看做多分数。有关多查询的更多信息可以在facebook开发者网站上找到:
https://developers.facebook.com/docs/reference/rest/fql.multiquery/