I do not own any page, but I want to get access to page views and ratings. Every time I access, I get an empty data set.
> http="https://graph.facebook.com/102227700571/tabs/reviews?access_token=fb_oauth"
> content=callAPIInfo(http,fb_oauth)
> content
$data
list()
I saw several similar questions like 1 2 , but I didn’t get an answer, I don’t want to collect page access tokens from the administrator of each page, is it possible to get a review and .thanks rating.
EDIT
Finally, I find a very detailed ifaour answer for accessing access tokens from the administrator and his need to use the page access token, so here's how to get the page access token and review and rating
- Go to Graph API Explorer
- Choose your application from the dropdown menu
- Click Get Access Token
- Select manage_pages permission (you may also need user_events permission, not sure)
- Now follow the link me / accounts and copy the page access_token Click
- ID of your page Add access_token page to GET fields Call
required connection (ex: PAGE_ID / events)
access_token="xxx"
> content=callAPIInfo(http,access_token)
> content
$data
$data[[1]]
$data[[1]]$created_time
[1] "2014-04-13T11:37:26+0000"
$data[[1]]$reviewer
$data[[1]]$reviewer$name
[1] "abc"
$data[[1]]$reviewer$id
[1] "100000579606903"
$data[[1]]$rating
[1] 4
$data[[1]]$review_text
[1] "Enjoy having coffee here...:)"
source
share