I am using the https://api.bing.microsoft.com/v7.0/news/search?q=Some query endpoint to search for news articles. The web search endpoint returns snippets from the website that are relevant to the query. Is it possible to get the same for this endpoint?
Related
I'm trying to find people either from particular city or who live in that city. Is there an API for this purpose?
When I use Facebook page, I can type in "People who live in Rome, Italy" (which is translated to URL https://www.facebook.com/search/115353315143936/residents/present) and it shows me all people who currently live in Rome. Using web page I can also search people by name and then add additional filter by city.
Can I do something similar with Graph API?
You can only search by name with the API: https://developers.facebook.com/docs/graph-api/using-graph-api#search - there is no way to get the same kind of search than on facebook.com.
you can add center and distance in the query
this comes from the documentation, you can change the type to type=user
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
I'm using the Facebook Graph API to search for a business's Page. I've included type=page in the search query, however the results contain several Place results that are listed as "Unofficial Pages".
Is there an easy way to filter the Unofficial Pages out of the results? I can't seem to find any documentation on how to do this.
For example, a local search is returning the following results for the same business....
Official Page: https://www.facebook.com/Turtle-Creek-Vineyard-1652393331683838/
Unofficial Place: https://www.facebook.com/pages/Turtle-Creek-Vineyard/130640440336061
I would like to figure out how to have the first, official result returned only. Or, if there is parameter that I can use to filter out the unofficial, place results.
There is no filter option according to the docs about the Search API: https://developers.facebook.com/docs/graph-api/using-graph-api#search
You will have to filter on your own after getting the results.
Use the Field "is_unclaimed". If it is true, that's mean that the page is "Unofficial Page".
I'm trying to figure if its possible to search for strings in specific pages on Facebook's Graph API (version 2.5) or all searches abilities has been blocked?
There is any other wat to do so?
Here is the only search methods that i found
You found everything that is possible to search for. You canĀ“t search for strings on Pages, you can only get the feed and and search for the string with your programming language of choice.
https://developers.facebook.com/docs/graph-api/reference/v2.5/page/feed
Is it possible to use the FB GraphAPI to call posts / comments using specific keywords so that this content can be shown on an e-commerce site search results page?
For example, a user on myhandbags.com searches for 'gucci handbags'. As well as the usual product search results, there is a tab for 'Social posts' - in this tab content from Facebook is shown that matches the search query 'gucci handbags' (so perhaps that phrase is contained in the post/comment).
So the site would need send a GET request to FB when the query is submitted and then fetch the relevant content and display it on the search results page.
I'm trying to figure out a way find related interests on Facebook. E.g. I want to search for Cityville and result should be Farmville, Castleville etc.
Is there an API to support this, what are the alternatives?
You can search the JSON result by the Graph API with the url https://graph.facebook.com/me/likes?access_token={your_token_here}, replacing the "me" with the Facebook User ID/Name.
If you are looking for pages search, you can use the same API, with the url https://graph.facebook.com/search?q={keyword}&type=page&access_token={your_token_here}.