Chris
Chris

Reputation: 2035

Facebook API Post Search Deprecated?

I am trying to perform a search via the Facebook API and getting the following error from Facebook - (#11) Post search has been deprecated

URL I am using to query graph: https://graph.facebook.com/search?q=search_query&type=post&access_token={access_token}

Any ideas why this is happening as I can't seem to find anything about the post search being deprecated?

Upvotes: 10

Views: 21645

Answers (3)

Niraj Shah
Niraj Shah

Reputation: 15457

UPDATE

Graph API v1.0 has been fully deprecated and is no longer available as a workaround. Original answer below for reference.


Yes, version 2.0 of the GraphAPI does not let you search for posts anymore. See the updated documentation.

You can continue to search for posts by changing your API call to:

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

I.e. add v1.0/ after https://graph.facebook.com/

Upvotes: 15

superarts.org
superarts.org

Reputation: 7238

According to Facebook, "All Facebook-enabled apps will be automatically upgraded to API v2.0 on April 30, 2015. If you have mobile apps, you'll need to update your app well before that date - leaving additional weeks for people to download your update from the store", and "Public post search is no longer available".

Check this for details: https://developers.facebook.com/docs/apps/upgrading

Upvotes: 4

Aleksandr Larionov
Aleksandr Larionov

Reputation: 823

As mentioned Niraj Shah, searching by the type "post" is already 'Legacy' API method and could be used with path '/v1.0/search?type=post', BUT there is one more trouble - your application can't use v1.0 API, if it was created after 30th April 2014. So be careful. According this answer.

Upvotes: 9

Related Questions