Facebook Search API, keyword search does not display posts made in a page but only in a profile - facebook

I am using the facebook search API to find posts that include my keyword. I noticed that the posts returned always belong to facebook profiles but never facebook pages. To back that up, I searched for keywords of low frequency which I spotted in pages but the API did not return them.
Is there any way I can search by keyword and get posts from pages too ?

Taking a look at the documentation: Just search with &type=post. From that documentation:
All public posts: https://graph.facebook.com/search?q=watermelon&type=post

Related

will google search ranking pick up on facebook posts?

Will google search rankings pick up on links posted by someone as a status increasing the rank of the add(link building)?
I don't think so.
I tried to get all indexed webpage of FB. I don't see any specific posts in the list. Other places where you see posts (ex. your profile) is asynchronously loaded, so no crawling there.
https://www.google.com.au/search?q=site%3Afacebook.com&oq=site%3Afacebook.com&aqs=chrome.0.69i59j69i58.3257j0j7&sourceid=chrome&es_sm=91&ie=UTF-8#q=site:facebook.com&start=290

Graph API SEARCH not returning public posts done on a page

I'm trying to get posts with a certain keyword (in fact, a hashtag), but I'm not receiving all posts. For example, there are a lot of posts done by users on a certain page that are not being pulled although they're public. The call I do is similar to this one:
https://graph.facebook.com/search?type=post&q=keyword&access_token=XXXXX
Not sure if this type of posts are considered public but only retrievable by specifying the page:
https://graph.facebook.com/PAGE_ID/feed?access_token=XXXXX
But I need to retrieve all public posts containing a certain keyword and I don't know exactly which pages could users post to with this hashtag...
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)"

Facebook API How to get a list of unpublished posts

I'm having a little bit of trouble getting a lists of posts of a page on facebook...
I'm using the url to get the posts of the page
string.Format("{0}/posts, pageid)
But I cant take the unpublished posts.. It only gets the published posts... Is there any permission I have to use... or some other parameter? I also tried like this
string.Format("{0}/posts?is_published=false", pageid)
... Didn't work...
Can someone help me?
Try the following
<pageId>/promotable_posts?is_published=false&fields=<the fields that you want>
at Facebook Graph API Explorer
Promotable posts include unpublished posts as well as regular posts. To get only unpublished posts, set is_published to false.
Fields are just comma delimited field names ex: fields=message,created_time,comments
Docs/source

Show tagged images from facebook on website?

I am trying to achieve similar functionality to the one shown here...http://blackmilkclothing.com/collections/leggings/products/circuit-board-grey-leggings
there fan page https://www.facebook.com/blackmilkclothing allows people to hash tag a photo and then populate it on their website like the link above.
Loading a series of tagged images from my facebook fan page to my website. I am not positive how this is acheived? I am assuming some kind of api process but any help in the right direction would be appreciated.
Thanks! All help is appreciated
See the 'tagged' connection of a Page in the Graph API: https://developers.facebook.com/docs/reference/api/page/
It returns a list of objects the page is tagged in, including photos
If you need background knowledge I suggest these links in particular:
Graph API overview: https://developers.facebook.com/docs/reference/api/
Page login: https://developers.facebook.com/docs/authentication/pages/
After a good bit of trial and error I've found the most efficient way to query photos tagged to a particular Facebook page is to use Facebook's FQL interface to retrieve a list of stream posts.
With FQL you can limit the queried objects to only those posts containing images (unlike with the higher-level Graph API calls which will return all posts, many of which may not have associated photos), and you'll also have more granular control over composition of the result set.
Keep in mind that Facebook doesn't have true hashtag support (only Facebook pages can be tagged), so to simulate the hashtag support that Black Milk Clothing encourages, you'll need to parse and filter the photo message text yourself.
As an alternative quick and easy solution, I've rolled the results of my efforts into a free online service called TagTray -- with TagTray I've added an interface for building and curating hashtag based galleries from Facebook, Instagram, and TwitPic (including application-level Facebook hashtag filtering) that can be framelessly embedded into a site with a few lines of JavaScript.

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.