I need to search Facebook for certain keywords and count them if possible?
Thanks!
It might not cover everything you want, but the new Graph API does, indeed, include search.
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 need to have something like http://fanpagelist.com/category/musicians/ in my web app.
Basically I need to allow users to search through Facebook pages of musician/band category and sort by number of fans.
The closest I got was with this FB Graph API call:
search?q=musician&type=page&limit=25&after=MjQZD&fields=name,fan_count,category
But that is searching for pages that have 'musician' in the name, not in the category field.
Any idea? It must be possible since fanpagelist can do it...
There is no way to filter the results from that search endpoint directly.
You are limited to the options described under https://developers.facebook.com/docs/graph-api/using-graph-api/#search, and that basically means you can search by name, but nothing else.
So you will need to filter the results on your end.
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
The problem:
I want to find public posts that contain two hashtags (like #games & #movies). The graph search does not work with hashtags apparently. Do you know a way to use the Graph API to set up a query that can help me find those particular postings.
Thanks in advance
You can use the standard Search API for Posts as described in the answer here:
Facebook API - Using javascript sdk and searching public posts for hashtags
For example,
https://graph.facebook.com/search?q=%23selfie&type=post&access_token={user_access_token}
works for me.