Facebook Graph Search Error while searching “Event”

This is embarrassing, but I am at my wits end. While performing a very simple search for "Events" using fb Graph Search, I get the following error:

 {
  "error": {
  "message": "(#200) Must have a valid access_token to access this endpoint",
  "type": "OAuthException",
  "code": 200
}}

This is the code I execute:

https://graph.facebook.com/search?q=conference&type=event&limit=1&access_token=XXXXXXXXXX|XXXXXXXXXX

It works JUST FINE for any other type of search - with the same access token for example:

https://graph.facebook.com/search?q=conference&type=place&limit=1&access_token=XXXXXXXXXX|XXXXXXXXXX

I get the following result:

{
"data": [
  {
     "category": "Local business",
     "category_list": [
        {
           "id": "164243073639257",
           "name": "Hotel"
        }
     ],
     "location": {
        "street": "Langelaan 3",
        "city": "Noordwijk",
        "state": "",
        "country": "Netherlands",
        "zip": "2211XT",
        "latitude": 52.251963727407,
        "longitude": 4.4722281054509
     },
     "name": "NH Conference Centre Leeuwenhorst",
     "id": "165032770219308"
  }
],
  "paging": {
  "next": "https://graph.facebook.com/search?limit=1&type=place&access_token=XXXXXXXX|XXXXXXXXX&offset=1&__after_id=165032770219308"
}
}

At this point, I am out of ideas.

Answers


Facebook recently changed things in their API, Search was one of those things. You can only do this kind of search on Places and Pages now. To search events, you need an app access token. See this blog post: https://developers.facebook.com/blog/post/2013/04/03/platform-updates--operation-developer-love/


Need Your Help

Mono.Cecil, Missing compiler required member 'System.Runtime.CompilerServices.ExtensionAttribute..ctor'

c# mono mono.cecil

I downloaded the latest Mono.Cecil and now whenever I start up my project it gives me that error. It goes away if I remove and add mono.cecil. But that is a pain to do every time I open my project.

Show all labels in line graph nvd3.js?

javascript d3.js nvd3.js linechart

i work with nvd3.js to show line graph in a dashboard. The problem is that cause the graph takes a small place, not all labels are showed for example : i want that all the days of the week are sho...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.