0

我正在使用 Facebook fql.multiquery 来使用命令行获取数据。像这样

$queries = '{
        **"query1" : "SELECT metric, value 
                    FROM insights WHERE object_id=148945955209922 
                    AND metric="application_active_users" 
                    AND end_time=end_time_date("2011-12-10") 
                    AND period=period("month")",
        "query2" : "SELECT metric, value 
                    FROM insights WHERE object_id=148945955209922 
                    AND metric="application_active_users_city" 
                    AND end_time=end_time_date("2011-12-10") 
                    AND period=period("month")"
    }';

但是在运行此代码时,它显示为空数组。

有谁能够帮助我?

4

1 回答 1

0

我将首先开始对您的访问令牌进行故障排除。确保您的访问令牌具有适当的权限。其次,通过正常的 FQL 分别运行每个查询,确保查询彼此独立运行。您可以使用 Graph API Explorer 工具https://developers.facebook.com/tools/explorer使用 FQL 结构

于 2012-01-02T17:00:24.600 回答