skip to Main Content

I am trying to collect data about a post on facebook from its graph api. I am able to get all the other information (like comments, when the comment was created, who created it, etc etc) but i am not able to find the timestamp on the reactions. That is i want find out at what time (and date) did the user add the reaction. Does facebook have this information? If yes, then how do i get that information using graph api?

2

Answers


  1. Does facebook have this information?

    Most likely they do.

    If yes, then how do i get that information using graph api?

    You don’t, because they do not provide that information via API.


    For a page you manage you could set up a webhook for the feed endpoint; that will get you updates for everything that happens on the feed – new posts, new comments, new reactions … You’d have to filter out the reactions on your end, and then you could record them in your database with a timestamp that should be close enough. (That will only work for new reactions though, and not already existing ones.)

    Login or Signup to reply.
  2. Yes , you can get details of comment by:

    https://graph.facebook.com/{page-id}/{post-id}/reactions?access_token={page_token}
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search