Home Getting empty list on post reactions. What could be the reason?
Reply: 1

Getting empty list on post reactions. What could be the reason?

Suhail Gupta
1#
Suhail Gupta Published in 2018-02-12 14:08:34Z

I am trying to read reactions on a post using the following graph-api call:

FB.options({version: 'v2.12'});
FB.setAccessToken('EAACEdE7w4Fp85PlhH0NYpZBddHyqkx6XXXX')


FB.api('/765898450131958_1518951084826687/insights?metric=page_actions_post_reactions_wow_total', (res) => {
    console.log(res)
});

But I always receive an empty data list. What could be the reason for this? For reference I am using FB module to connect to graph-api.

The acces token I am using is my page-access token

mcfoton
2#
mcfoton Reply to 2018-02-14 07:04:01Z

From official Facebook API documentation:

On February 5th, 2018, User information will not be included in responses unless you make the request with a Page access token. This only applies to Comments on Pages and Posts on Pages.

https://developers.facebook.com/docs/graph-api/reference/v2.12/object/reactions

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.341026 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO