(# 200) Permissions error facebook

1

I'm trying to develop an application that does a search of content in facebook, example I have a list of keywords, and with these I do the search and facebook will return the content in the form of JSON from where it is published and of course the visibility of each post has to be public to be collected, however when I try to run in the browser the url below does not work, it follows:

link

Error:

  {
     "error": {
     "message": "(#200) Permissions error",
     "type": "OAuthException",
      "code": 200
    }
  }

When I try to pass the access token another error occurs: link

Error

 {
  "error": {
   "message": "(#11) Post search has been deprecated",
   "type": "OAuthException",
   "code": 11
  }
 }

Has anyone ever gone through this? Thank you in advance.

    
asked by anonymous 11.02.2015 / 22:38

1 answer

0

I think the first mistake is irrelevant, because to use the API it is mandatory to use TOKEN, so I will talk about the second error.

(# 11) Post search has been deprecated

As this response from SO-en

GraphAPI version 2.0 does not allow you to search for messages. See updated documentation .

You can continue to search for posts if you change the API call to:

https://graph.facebook.com/v1.0/search?q=search_query&type=post&access_token={access_token}

The example adds v1.0/ after https://graph.facebook.com/

However according to this comment

Version v1.0 will no longer work after 30 / April / 2015 .

In other words, such a tool will no longer be available.

Read about the upgrade: link

Endpoints no longer available in v2.0

  • /me/locations has been removed. Use /me/tagged_places .
  • /me/checkins was removed, along with the user_checkins permission.
  • /me/questions was removed, along with the user_questions permission. It also includes /{page-id}/questions , /{group-id}/questions , /{question-id} and /{question-option-id} .
  • /me/subscribers and /me/subscribedto have been removed.
  • /me/username no longer available.
  • /me/notes no longer available, along with user_notes permission.
  • /{page-id}/notes no longer available.
  • /{page-id}/questions no longer available.
  • % w / w% no longer available. (% with%)
  • Public Post search no longer available ( /search?type=post&q=foobar )
  • News Feed search no longer available.
11.02.2015 / 22:44