0

1 か月あたり平均 144 件の投稿がある Facebook ページで、30 件の投稿インサイト メトリックをすべてダウンロードしたいと考えています。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.

これまでのところ、1 日あたりの投稿に関するこれら 30 のメトリクスすべてをループすることを考えました: 30 * n (投稿の数) = Facebook には多すぎる Graph API 呼び出しの数。

理想的には、Facebook が XLS で提供しているが Graph または FQL を使用する Post Export を望んでいます。

ありがとうございました!シリル

4

2 に答える 2

1
$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')
            ";
于 2013-10-22T19:57:19.973 に答える