Facebook REST API for links.getStats alternative needed - facebook

I am building a site where I need the social sharing statistics of a particular URL for example http://www.facebook.com/.
So I came across this REST api by facebook which solves the problem perfectly.
https://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.facebook.com/
But I noticed that the API will be deprecated , and I have no idea when.
I wanted to know what is the Facebook Graph API alternatice to the same legacy REST API.

Use the link_stat FQL table - this has the same information.
You can also use the Insights API on Graph API depending on what metrics you need

Related

Facebook Graph & Marketing APIs - Postman collection available?

Is there any Postman collection available for Facebook Graph API and its "children"? (Marketing API and friends.)
I'd definitely ask somewhere on their SDKs Github page, but all of them don't allow to post any "Issues". Also, I've been surfing the web for a while on this.
A great example of what I'm after is WhatsApp's Business API Postman collection, it's publicly available here -> https://developers.facebook.com/docs/whatsapp/guides/postman/
What you are looking for is not available at this time.
Our docs are the source of truth for all API's
https://developers.facebook.com/docs/

Facebook API to get 'landmark' posts

How would I GET landmarks, like new job/ married/ moved, etc. from the facebook (or any other 3rd party) API??
I'm trying to make a timeline of 'big' moments using facebook, specifically on iOS
I found an answer here stackoverflow.com/questions/12400522/… that lets you use FQL instead of the graph API to send requests and then returns more exact information.
Facebook's FQL reference is here: https://developers.facebook.com/docs/technical-guides/fql/

Viewing Shares information for a Facebook post using Facebook graph API

Im trying to use the Facebook graph api on rails to find for a specific post who shared it. Looking through the documentation and the api data it doesn't seem that this information is available for a specific post. I am able to get the likes and comments information, however not the shares.
Would anyone know whether the current Facebook Api gives that information? Thanks
Using Graph API, do a request to graph.facebook.com/POST_ID?fields=sharedposts.
Iterate through the resulting array to get the sharers' identity.
Example in Python here.

News Feed via Graph API 'outdated'

On the Graph API documentation, the following is in brackets next to the News Feed endpoint:
this is an outdated view, does not reflect the News Feed on facebook.com
This is a fairly critical method in any app using the Graph API, so what are we supposed to use? Is there a way to obtain a more accurate version of the News Feed with a different API?
I've noticed some differences between what is shown on the website and what is shown through the API but I assumed most of it was down to individual user permissions. Either way this issue is non-trivial and is starting to make regret choosing the Graph API over, say, FQL.
You can use FQL to fetch the news feed. See the documentation under https://developers.facebook.com/docs/reference/fql/stream/
But it seems that the results doesn't differ from the results via the graph api.

How do I publish an activity on facebook using the Graph API

The old Facebook Legacy REST API had a function dashboard.publishActivity, however the new Graph API only allows messages to be posted on /me/feed.
Is there a way to send activities using the Graph API?
As mentioned in http://developers.facebook.com/blog/post/552/ Facebook "have removed the section which displayed the News that developers published via the Dashboard APIs in the Games Dashboard". Therefore the dashboard.publishActivity function no longer provides any useful functionality. My recommendation is to switch to either using stream posts or to Requests 2.0, as these will provide the same sort of distribution that you're looking for.