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

  1. go graph api explorer
  2. choose app dropdown menu
  3. click "get access token"
  4. choose manage_pages permission (you may need user_events permission too, not sure)
  5. now access me/accounts connection , copy page's access_token click on
  6. your page's id add page's access_token fields call
  7. 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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -