Is it possible to use Facebook search in my app? - facebook

I'm developing a Facebook app.
I wonder if I can use the original Facebook search engine in my app via their REST API. Is it possible?

You can search over all public objects in the social graph with
https://graph.facebook.com/search?q=watermelon&type=post
q is query and type is object
Check the API docs (look for searching)
https://developers.facebook.com/docs/reference/api/

Related

Search recent media and comment via Instagram API and Graph API

I want to build an app where the app user can from within the app
search Instagram's most recent media by a search term (Hashtag-Search)
post comments to Instagram posts
For searching Instagram the Graph API can't be used, because it doesn't has such capability. Therefore I need to use the old Instagram API, correct? But Instagram states "The Instagram Graph API is Now Available to All Developers. For Non-Business Instagram Accounts please continue to use the existing Instagram Platform API". The users of my platform have business accounts which I need for posting comments via the Graph API.
Do I have to use the Instagram API for searches by the app users (1.) and the Graph API for posting comments(2.)?
Is there another way to search for Instagram media which is not against Instagram policies?
Yes, You need to use both APIs; in other words, have to have access token for both apps just for the same Instagram account, doing oauth handshake to each API's authentication.
Also to note - for your first requirement: Search media by hashtags in Instagram API, you need your app to have public_content scope; which Instagram no longer approves to new apps. So, unless you have an oauth app already with this scope for Instagram API; most likely it wouldn't be possible to use developer apis for search.
For limited tag search you can use public web api:
https://www.instagram.com/explore/tags/{tagName}/?__a=1
for example: https://www.instagram.com/explore/tags/apple/?__a=1
This is just for recent media - I guess, this API does not guarantee all media.
This is no longer correct.
The graph API has the endpoint ig_hashtag_search, which will find the ID of the hashtag. You can then use it to search for media on endpoints recent_media and top_media.

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

Facebook API - Advanced Search

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

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)"

searching users from facebook, with their name and other attributes

I want to create a search engine for Facebook. It should search users on social networking site Facebook. So can I use Graph API for the purpose ?? or is there any other technology available which I can use ?
Yes you can use the Graph API for this. see the "Search" Section of http://developers.facebook.com/docs/reference/api/
You can search over all public objects
in the social graph with
https://graph.facebook.com/search