-1

I am using Graph API for insights stats for facebook page but data array is blank and not returning any value.

"data": [

   ]

1 Answers1

0

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/insights no longer includes likes and comments by default, but GET /v2.4/pageid/insights?fields=id,name,period,values,title,description will return the data. For more details see the docs on how to request specific fields.

Community
  • 1
  • 1
V.J.
  • 9,492
  • 4
  • 33
  • 49