I’m trying to send FQL multiqueries as described here without using old legacy REST API but with Graph.
This is an old request with Graffiti application:
https://api.facebook.com/method/fql.query?query=SELECT%20metric%2C%20value%20FROM%20insights%20WHERE%20object_id%3D2439131959%20AND%20metric%3D'application_active_users'%20AND%20end_time%3Dend_time_date('2011-06-26')%20AND%20period%3Dperiod('month')&access_token=AAAAAAITEghMBACjLou2bh6PRtdhHuYqqQLrZAoXzBZAWVkH0QF9Lw3cqcviZAZCH1fwsqlagtwuCSjmA4gPPuftwWVGEuiMVnw7ab38aZCpfsR1LkbSqP
And result is (works):
<fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true">
<insights>
<metric>
application_active_users
</metric>
<value>
955848
</value>
</insights>
</fql_query_response>
If understand it correctly it should work (slightly) modified as (single FQL):
https://graph.facebook.com/fql?q=SELECT%20metric%2C%20value%20FROM%20insights%20WHERE%20object_id%3D2439131959%20AND%20metric%3D'application_active_users'%20AND%20end_time%3Dend_time_date('2011-06-26')%20AND%20period%3Dperiod('month')&access_token=AAAAAAITEghMBACjLou2bh6PRtdhHuYqqQLrZAoXzBZAWVkH0QF9Lw3cqcviZAZCH1fwsqlagtwuCSjmA4gPPuftwWVGEuiMVnw7ab38aZCpfsR1LkbSqP
or even FQL multiquery:
https://graph.facebook.com/fql?q={"query1":"SELECT%20metric%2C%20value%20FROM%20insights%20WHERE%20object_id%3D2439131959%20AND%20metric%3D'application_active_users'%20AND%20end_time%3Dend_time_date('2011-06-26')%20AND%20period%3Dperiod('month')&access_token=AAAAAAITEghMBACjLou2bh6PRtdhHuYqqQLrZAoXzBZAWVkH0QF9Lw3cqcviZAZCH1fwsqlagtwuCSjmA4gPPuftwWVGEuiMVnw7ab38aZCpfsR1LkbSqP"}
and result is empty, no errors, in both cases. For me: (multi) FQL queries work for user, not for the page. Graph insights works fine for the same page.
Any help is much appreciated.
Answer to myself: it works using timestamps as
end_date(that is not usingend_time_datefunction) and withperiodfunction. Don’t know why.