Search content in specific pages on Graph API - facebook

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

Related

Facebook Graph API Search "Unofficial Results"

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

How can I get a list of all "likable" Facebook pages?

I'm exploring the Facebook API for the first time - partially to research a web app idea I have and partially out of pure curiosity. The Explorer tool has been a great help with most things.
I'm trying to get a complete list of "Likable" pages on Facebook such as: Movies, Music, Books, TV Shows, etc. I understand how to get a list of pages that a user has liked, but I want the entire index of pages that exist.
All of the strings I've worked with so far start with /username. Is there another prefix for querying Facebook in general?
No, this is not possible and doesn't exist in the API.
A query like this is way too resource intensive.
You can use the
/search?q={query}&type=page&access_token={app_access_token}
with {query} as the search string, {app_access_token} as your App Access Token, as outlined at
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#search
It's not possible to retrieve or search for whole Page Categories.

Need help on employing Graph Search parameters for hashtag query on facebook

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.

Any way to query either ALL Facebook Pages or the TOP 20% (by likes) using Graph API or FQL?

I want to build my own list of the most 'liked' pages on Facebook. FB itself appears to do a version of this, at least for each letter of the alphabet. Each directory page, such as http://www.facebook.com/directory/pages/A lists the top 20 most liked pages starting with that letter.
If I knew the IDs of every FB page then I could easily grab its like count using the graph API, but I don't know of a way to get that initial list. I'm sure it's huge, and honestly, I really would rather just have the top 20% or so of all pages. But if I had them all I could do the sorting myself.
I've searched the FB dev forums and looked through their docs but can't find a way. Queries using FQL don't appear to take wildcards either.
In FQL, you can search the page table by name. This doesn't allow wildcard searches though. Using the graph api, you can perform page searches using this url:
https://graph.facebook.com/search?type=page&q=test (You would want to future proof this by adding an access_token parameter to the end). A third option would by to use search engines to search for Facebook pages. Finally, you could scrape and parse the Facebook page browser by using this url.

Is there a "Facebook Search API" similar to the "Twitter Search API"?

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.