get most recent posts using facebook search api - facebook-graph-api

I want to get recent posts[wall post/video/image] using Facebook API/graph API.
I have searched for that and i have founded that i can get recent activity but for particular user only.
But I want to get all the recent public posts from Facebook not for any particular user.
Is this possible?
Thanking in advance.

Use the Graph API search command. It does what you want. It's documented nearly at the end of the main Graph API documentation page.

Related

Facebook/Instagram API - Getting Popular Hashtags

I am trying to use the Instagram API for one of my projects. The task I'm trying to accomplish is getting popular hashtags based on an input keyword.
To elaborate a bit: when you're on Instagram, and start typing a hashtag, you get a popup with suggested hashtags related to what you're typing, sorted by popularity.
I'm trying to get these suggestions, but through an API call. Looking at the Instagram API docs, there is Hashtag Search as shown here, but this endpoint searches for posts which use the input hashtag, which is not what I want.
Another post suggested I have a look at Facebook Graph API instead, but again no luck there either.
I know this is possible to do as certain websites which provide services to schedule posts, like this one do it.
So, is there an endpoint in either Instagram or Facebook API that I've missed, or is there any third party API / tool that can accomplish this?
There is not currently any "trending" features as part of Instagram Graph API.

Facebook Graph API: How to get all links from page in API v2.7?

In Facebook Graph API v2.3 it was possible to get all links belong to specified page using "links" edge:
GET v2.3 {page_id}/links
This request shows really all links (not only published, which are accessible by /feed request). Graph API Explorer still can execute this request.
But all new Facebook applications can use only Graph API v2.7, not older. FQL also was deprecated at 08.08.2016.
So, how can I get all links from page (not only published) by Graph API v2.7 from my application? Even dirty hacks are appreciated, thank you.
Upd.: Links posts are promotable posts. They did not showed by /feed, only by /promotable_posts, which is necessary endpoint for my needs. I've found also a necessary parameter for this endpoint which shows really all links posts: include_inline.
So, final request is:
GET v2.7 {page_id}/promotable_posts?include_inline=true
GET /v2.4/{id}/links and GET /v2.4/{id}/statuses will no longer be available beginning in v2.4. As an alternative, we suggest using GET /v2.4/{id}/feed.
Source: https://developers.facebook.com/docs/apps/changelog
So you will have to use the feed endpoint and filter out links on your own.

Get the Date on which a particular page was liked by me using Facebook Graph API

Is there any way using FB Graph API by which I can find the date on which the particular page was liked by me?
Thanks
No, there is not.
The date/timestamp of when a “like” happened is not available via the API.

Facebook API: Get people list who like a page

Is there any way to get all people list who liked our page using Facebook API? I looked at the documentation but i am not able to find that.
Can any one help me out. Thanks
Simple answer: There is no endpoint for that in the Graph API. You can get some breakdowns via the Page Insights, but not the actual people which like your Page.
See
https://developers.facebook.com/docs/graph-api/reference/page
https://developers.facebook.com/docs/graph-api/reference/v2.4/insights
https://developers.facebook.com/docs/graph-api/reference/v2.4/insights#page_users

How to get all the posts that a page is tagged in using Graph API

Since FQL is deprecated from 2.1 onwards.Is there any way to get all the posts that a page is tagged in using Graph API.
tried {page_id}/tagged but it shows only the page's posts not the posts that a page was tagged.
I want to query the posts using graph API by a user on their own wall that tags the page.is there any way to do that?
isn't this a functionality of the Public Feed API which Accessing it is restricted to a limited set of media publishers and usage requires prior approval by Facebook. Applications to the API are not open at this time.