Facebook Insights API for website

These questions are asked a lot, but I can not find the answer anywhere.

What I want to do: Get the metrics and data for one of my websites using facebook via the API. What I have done so far: meta tag and everything is in place. I read the docs. I can see some simple indicators on the insight toolbar, such as stocks.

According to facebook docs, their api is available for pages, applications and domains. It works very well when I try to get data from the application (https://graph.facebook.com/324923697601554/insights), but every time I try to use the same thing with my domain identifier (specified by the meta tag) all that I get this is a blank page that looks like this:

:{ "data": [ ], "paging": { "previous": "https://graph.facebook.com/415793855145069/insights?access_token=...&since=1349198931&until=1349458131", "next": "https://graph.facebook.com/415793855145069/insights?access_token=...&since=1349717331&until=1349976531" } } 

I already read the docs on facebook, but I can not understand the problem.

Thanks.

+6
source share
1 answer

Have you tried '& access_token'?

Additional information about access tokens: https://developers.facebook.com/docs/facebook-login/access-tokens/

0
source

Source: https://habr.com/ru/post/927383/


All Articles