48746

Facebook Graph - Unsupported get request - Page

Question:

I have a problem with the Facebook Graph API and some Pages. e.g. 115184661826036, 299277891520

<ul><li>In the Graph Explorer it works <a href="https://developers.facebook.com/tools/explorer" rel="nofollow">https://developers.facebook.com/tools/explorer</a></li> <li>Directly from Graph it doesn't work <a href="http://graph.facebook.com/115184661826036" rel="nofollow">http://graph.facebook.com/115184661826036</a></li> </ul>

Here is the error:

"error": { "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", "type": "GraphMethodException", "code": 100 }

Answer1:

This is because the page is age-restricted (category is "Wine/Spirits"). You need to pass a User Access Token so that Facebook Graph API can determine if you're eligible to view the Page's content.

See

<ul><li><a href="https://developers.facebook.com/docs/graph-api/reference/page#Reading" rel="nofollow">https://developers.facebook.com/docs/graph-api/reference/page#Reading</a></li> </ul><blockquote>

A user access token is needed to view fields from restricted pages that this person is able to view (such as those restrict to certain demographics like location or age, or those only viewable by Page admins).

</blockquote>

Recommend

  • create recurring activejob fails
  • Intellisense cannot infer type from extention method
  • Meteor throws throwIfSelectorIsNotId exception
  • K Shortest Path Python Not Working
  • JAXB Root Class Rename using binding.xml
  • Rely on Facebook user id as a permanent user identifier
  • how to post with curl to REST/JSON service?
  • Max of several columns
  • Version in docker-compose is unsupported
  • How to add learning rate to summaries?
  • Double dispatch in Java example
  • Cuda Clang and OS X Mavericks
  • NHibernate Validation Localization with S#arp Architecture
  • How can I send an e-mail from a vbs script
  • Accessing IRQ description array within a module and displaying action names
  • Finding past revisions of files in StarTeam w/ .NET SDK / C#
  • Java applet as stand-alone Windows application?
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • htaccess rewriting URLs with multiple forward slashes
  • Symfony2: How to get request parameter
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • Jquery - Jquery Wysiwyg return html as a string
  • A cron job substitute?
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • SQL merge duplicate rows and join values that are different
  • log4net write single file for each call to log.info
  • Acquiring multiple attributes from .xml file in c#
  • Getting error when using KSoap library to consume .NET web services
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Getting Messege Twice Using IMvxMessenger
  • LevelDB C iterator
  • Linking SubReports Without LinkChild/LinkMaster
  • How can I remove ASP.NET Designer.cs files?
  • Can't mass-assign protected attributes when import data from csv file
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Reading document lines to the user (python)
  • java string with new operator and a literal