Facebook API - Advanced Search - facebook

I'm trying to replicate some functionality of the Facebook web interface via the API and am a bit stuck. Basically, via the web site I can enter 'Favorite pages of people named "jim"' in the search box and get a slew of results, but I haven't found a way to replicate this type of query via the API. Is such a thing possible?

As WizKid commented, Graph Search is not available with the API, you can only use the Search API for searching: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.1#search
Keep in mind that public search and news feed search are not available in v2.0 anymore, see changelog: https://developers.facebook.com/docs/apps/changelog

Related

Can we search all the public post referring a particular keyword using Facebook Graph API?

I need to get all facebook posts with the sdk by searching with one word
There is no way to do this, for normal 3rd-party apps.
What you can search for via Graph API, is quite limited - https://developers.facebook.com/docs/graph-api/advanced#search
(This used to include other stuff before, searching for users, etc., but most of that has since been removed.)
There is the Public Feed API - but that is not available to normal 3rd-party apps, https://developers.facebook.com/docs/public_feed/:
Access to the Public Feed API is restricted to a limited set of media publishers and usage requires prior approval by Facebook. You cannot apply to use the API at this time.

Personal results while using Facebook Graph API search

I'm developing an app in which the user needs to search and select a person from Facebook. I'm able to search in the Facebook Graph API using "https://graph.facebook.com/search", however this only give very general results and not the 'close' people Facebook would normally suggest when searching in the search field on Facebook.com. In this case it is impossible to find someone with a regular name.
Does anybody know how I can personalize my query or go around this problem?
The Graph API search is not the same nor directly comparable to the search in the Facebook website.
See
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.3#search

The *NEW* Facebook 'Post Search API'

This may look like an old question but is actually a new one (in other words, I'm aware they deprecated the "old" Post Search).
According to this source Facebook has now made it possible to search for Posts using the standard "Facebook Search" and I'm wondering if can I access this through the Graph API (and how)? Also where is the source of the article I mentioned? Where does Facebook announce this feature?
Thank you!
The Graph Search is not available via the API, so there is no possibility to use the new Post Search - at least not right now. But since they deprecated the Public Post Search, i donĀ“t think there are any plans to implement it again.

Has the Facebook graph search API been removed in Graph API version 2.0?

I can use the Facebook Graph API successfully (within my iOS app) for several calls but I'm trying to use it for searching.
I implemented the url after googling and getting many hits, i.e. Does facebook have a public search API yet?.
I can use the search API from a browser and get results, however it doesn't work from within my app.
So I had a look at the Facebook graph API reference https://developers.facebook.com/docs/graph-api/reference/v2.0
and search isn't listed there. Has it therefore been removed?
Be aware that Facebook has just taken down public post search in Graph API v2.0 so you won't be available to do that anymore.
Check https://developers.facebook.com/docs/apps/upgrading under section Graph API "Public post search is no longer available. (/search?type=post&q=foobar)"

Scope of Facebook's Graph API search

I am using the Facebook Graph API through the Javascript SDK to search for users. However, when I try to find a user that has a protected profile it does not show up in the search results. Which I find weird because if I use the Facebook website to look for the same user using the default search bar, the user DOES show up. Is there any solution to find a user in a better way?
Could you be more specific? How do you search for the users, what users are you searching for? As a general rule, if you need something more than basic information provided by Graph API, you will need user's permissions (as in getting their e-mail address and so on).