r - Get facebook public page rating and review -
i not owner of page want access pages reviews , ratings,each access time getting 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 of similar12 question didnt answer,i dont wanna collect page access tokens admin of each pages,is possible fetch review , rating.thanks.
edit
finally find detailed answer ifaour access pages token admin , necessary take page access token here how page access token , review , rating
- go graph api explorer
- choose app dropdown menu
- click "get access token"
- choose manage_pages permission (you may need user_events permission too, not sure)
- now access me/accounts connection , copy page's access_token click on
- your page's id add page's access_token fields call
the connection want (e.g.: page_id/events)
access_token="xxx" #[what u find above] > 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...:)"
see, all-most graph api calls needs access token access else you'll not result.
the different apis require different kinds of access tokens, required current user's access token, requires page access token , require app access token. , there apis can use either of these tokens.
you want rating/reviews of page. if read official documentation same (/{page-id}/ratings
), says-
a page access token required retrieve data.
so have have page access token ratings/reviews of page. (and should add manage_pages
permission , page access token /{page-id}?fields=access_token
)
Comments
Post a Comment