nov / fb_graph

This gem doesn't support FB Graph API v2.0+. Please use fb_graph2 gem instead.
MIT License
1.04k stars 191 forks source link

FbGraph::InvalidRequest on FbGraph::Page.fetch #367

Closed brunocavalcante closed 10 years ago

brunocavalcante commented 10 years ago

FbGraph::Page.fetch(foo) is throwing a GraphMethodException. Full message: "GraphMethodException :: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api".

Perhaps a side effect of some API change on Facebook?

nov commented 10 years ago

what is foo.id? probably the object id is invalid.

brunocavalcante commented 10 years ago

Double checked, turns out that "foo" was a fanpage that no longer exists – and that's what was causing the problem. Sorry for the nuisance! :(

nov commented 10 years ago

np

dgp commented 9 years ago

Facing same error when i fetch page detail by page id. Works partially. For eg:

  1. FbGraph::Page.fetch('245774372153') - can't access this page But that page exist here is the url - https://www.facebook.com/pages/Urban-Curry/245774372153
  2. FbGraph::Page.fetch('142157902556944') - can access this page.