Get facebook page rate and reviews using Graph api

前端 未结 3 966
眼角桃花
眼角桃花 2021-02-06 06:54

I am creating website to search places using graph API. I got the places details from graph API. Is there any way to get the page rating and reviews of the places via graph API?

3条回答
  •  孤街浪徒
    2021-02-06 07:05

    This is an old post, but I wanted to give some extra info to others that might be looking for a solution to this problem still. As stated in the Facebook Open Graph documentation, you definitely need a page access token to get the page's individual ratings/reviews. If you are looking for the overall rating and the count of reviews, however, you are in luck. By simply making a call to /{page-id}?fields=overall_star_rating,rating_count, you will be able to access that data.

    Here's an example response:

    {
        "overall_star_rating": 4.7,
        "rating_count": 31,
        "id": "{page-id}"
    }
    

提交回复
热议问题