0
ちょっとありました! 私のアプリケーションの信頼できる月間アクティブユーザー数を取得できません。私はFQLでそれを試しました:月間アクティブユーザーを正しく取得できない問題(Facebook Graph API経由)
[...] $end_time = date('Y-m-d', time()-(60*60*24*2)); // Dont' know what is correct. Sometimes it's *2 sometimes it's working with *3 $fql = $facebook->api(array( "method" => "fql.query", "query" => "SELECT metric, value FROM insights WHERE object_id='000000000' AND metric='application_active_users' AND end_time=end_time_date('".$end_time."') AND period=period('month')" )); [...]
最新の値を得ることはできません。私は自分のアプリケーションページに記載されているのと同じ価値を得たいと思っています。しかし、このコードでは毎日違うのです。
は、私はまた、このソリューションを試みた:
$fql = $facebook->api('/000000000/insights/application_active_users/month');
をしかし応答として、私はほんの数日の古い日付の値が出る:私は間違って何をやっている
Array ( [data] => Array ( [0] => Array ( [id] => 000000000/insights/application_active_users/month [name] => application_active_users [period] => month [values] => Array ( [0] => Array ( [value] => 166345 [end_time] => 2010-12-09T08:00:00+0000 ) [1] => Array ( [value] => 167679 [end_time] => 2010-12-10T08:00:00+0000 ) [2] => Array ( [value] => 168983 [end_time] => 2010-12-11T08:00:00+0000 ) ) [description] => Monthly Users who have engaged with your application or viewed your application (Unique Users) ) ) [paging] => Array ( [previous] => https://graph.facebook.com/000000000/insights/application_active_users/month?since=1291556506&until=1291815706 [next] => https://graph.facebook.com/000000000/insights/application_active_users/month?since=1292074906&until=1292334106 ) )
を?
こんにちは!それは私を助けた!私もこれを見つけた:http://stuff24.de/blog/monthly-active-users-facebook-fql/ – acy