5

It is possible to grab the comments data with the {page-id}/ratings call. The resultset of that call shows all rating entries without ids. Is there a way to add comments to those ratings? The documentation says that this should be possible if the story is generated, but I don't have a plan to generate that story.

Luke Willis
  • 8,429
  • 4
  • 46
  • 79
Sascha
  • 311
  • 3
  • 8

1 Answers1

8

Ok, found it.

you need to call {page-id}/ratings?fields=open_graph_story to get a list of all public reviews, including the object id. With these objects you can add comments: (POST) {object-id}/comments

Kamil Kisiel
  • 19,723
  • 11
  • 46
  • 56
Sascha
  • 311
  • 3
  • 8
  • Is ratings data public? Or do we need a page access token to get that? That's what it says in the [docs](https://developers.facebook.com/docs/graph-api/reference/page/ratings), so only page admins can read the reviews data. – Rahul Sainani Mar 18 '14 at 14:52
  • 1
    You need to have the page token and you only see the ratings that are visible on the page. If you create a rating which is visible for your friends, you will not be able to access that rating with the page token. – Sascha Mar 20 '14 at 11:57
  • So only the page admins can get the ratings data? – Rahul Sainani Mar 20 '14 at 12:38
  • 2
    That won't be possible for a lot of places, would it? :) Thanks for clearing this out for me. – Rahul Sainani Mar 21 '14 at 09:38
  • Thanks for your help Sascha - long time no see ;) – ankr Oct 29 '14 at 09:32
  • 4
    FYI, you can call `{page-id}/ratings?fields=open_graph_story{comments}` to get the comments with the ratings. – Alsciende Nov 07 '16 at 11:00