Facebook graph api 通过API下载Facebook Post Insights指标

Facebook graph api 通过API下载Facebook Post Insights指标,facebook-graph-api,Facebook Graph Api,我希望在一个Facebook页面上下载所有30条post insight指标,该页面平均每月发布144条帖子。知道Facebook应用了某些限制,下载这些帖子的最佳方式是什么 https://graph.facebook.com/$post_id/insights/$metric/$period?since=$since&until=$until&access_token=$token"; post_stories, post_storytellers, post_storie

我希望在一个Facebook页面上下载所有30条post insight指标,该页面平均每月发布144条帖子。知道Facebook应用了某些限制,下载这些帖子的最佳方式是什么

https://graph.facebook.com/$post_id/insights/$metric/$period?since=$since&until=$until&access_token=$token";

post_stories, post_storytellers, post_stories_by_action_type, post_storytellers_by_action_type, post_impressions, post_impressions_unique, post_impressions_paid, post_impressions_paid_unique, post_impressions_fan, post_impressions_fan_unique, post_impressions_fan_paid, post_impressions_fan_paid_unique, post_impressions_organic, post_impressions_organic_unique, post_impressions_viral, post_impressions_viral_unique, post_impressions_by_story_type, post_impressions_by_story_type_unique, post_consumptions, post_consumptions_unique, post_consumptions_by_type, post_consumptions_by_type_unique, post_engaged_users, post_negative_feedback, post_negative_feedback_unique, post_negative_feedback_by_type, post_negative_feedback_by_type_unique.
到目前为止,我想每天围绕帖子循环使用这30个指标: 30*n(帖子数)=对Facebook来说太多的Graph API调用数

理想情况下,我希望的是Facebook在XLS中提供的后期导出,但使用图形或FQL

谢谢大家!!
Cyril

我后来习惯于在Graph/API中翻页/insights和发布/insights,一次下载所有的洞察

$fql = "SELECT metric, value
        FROM insights
        WHERE
            object_id = '$post_id' AND  (
            metric = 'post_impressions_by_paid_non_paid' OR
            metric = 'post_impressions_by_paid_non_paid_unique' OR
            metric = 'post_stories' OR
            metric = 'post_storytellers' OR
            metric = 'post_stories_by_action_type' OR
            metric = 'post_storytellers_by_action_type' OR
            metric = 'post_impressions' OR
            metric = 'post_impressions_unique' OR
            metric = 'post_impressions_paid' OR
            metric = 'post_impressions_paid_unique' OR
            metric = 'post_impressions_fan' OR
            metric = 'post_impressions_fan_unique' OR
            metric = 'post_impressions_fan_paid' OR
            metric = 'post_impressions_fan_paid_unique' OR
            metric = 'post_impressions_organic' OR
            metric = 'post_impressions_organic_unique' OR
            metric = 'post_impressions_viral' OR
            metric = 'post_impressions_viral_unique' OR
            metric = 'post_impressions_by_story_type' OR
            metric = 'post_impressions_by_story_type_unique' OR
            metric = 'post_consumptions' OR
            metric = 'post_consumptions_unique' OR
            metric = 'post_consumptions_by_type' OR
            metric = 'post_consumptions_by_type_unique' OR
            metric = 'post_engaged_users' OR
            metric = 'post_negative_feedback' OR
            metric = 'post_negative_feedback_unique' OR
            metric = 'post_negative_feedback_by_type' OR
            metric = 'post_negative_feedback_by_type_unique') AND
            period=period('lifetime')
            ";