I am using Graph API for insights stats for facebook page but data array is blank and not returning any value.
"data": [
]
I am using Graph API for insights stats for facebook page but data array is blank and not returning any value.
"data": [
]
This is a reference from Stackoverflow Question
Looks like you're using v2.4 of the Graph API. See
Declarative Fields
To try to improve performance on mobile networks, Nodes and Edges in v2.4 requires that you explicitly request the field(s) you need for your GET requests. For example,GET /v2.4/pageid/insightsno longer includes likes and comments by default, butGET /v2.4/pageid/insights?fields=id,name,period,values,title,descriptionwill return the data. For more details see the docs on how to request specific fields.