I want to get the LinkedIn share(post) like count and comments using the REST API. Please help me if anybody has an idea about this.
Thanks.
If you want the count of likes, impressions, comments, shares then you have to hit this URL ->
https://api.linkedin.com/v1/companies/{id}/company-statistics
provided if you have the id of the company page, then you will get the count of likes, clicks, impressions, engagement, shares, comments in month break up wise.
Related
I have FB post
I can click "77 people like this" and get all people I needed.
Question: is there way to get these people by FB API ?
PS I want to get 3 random names from these list so I need to have these people in JSON format
It's easy to do with FQL. This gets you three random ids of people who liked this event
SELECT user_id FROM like WHERE object_id = 336638873112346 ORDER BY rand() LIMIT 3
If you wanted to get their names instead, you'd rewrite the query like this:
SELECT uid, name, username FROM user WHERE uid IN
(SELECT user_id FROM like WHERE object_id = 336638873112346 ORDER BY rand() LIMIT 3)
I'm one of the co-founders of Kither, a platform for checking all of your Facebook stats. We have added many features which requires to fetch all of our user's posts likes.
As of August 6, 2016, FQL is deprecated.
Facebook's Graph API's still available and you can call https://graph.facebook.com/{api-version}/{post-id}/likes to get likes on posts. But remember, Facebook uses pagination on likes if there are more than 1,000 of them.
Now, In this case you'll need to call the next page url.
You'll need to call the next url unless you've got all the likes. (you won't find any next field if there are no more likes)
To get how many people have liked that post (i.e. count), you don't need to page through results. You can simply use https://graph.facebook.com/{api-version}/{post-id}/likes?summary=true and you'll get an extra field containing all likes' summary, including their count.
Same can be done with comments and recently added, reactions.
is possible to sort the fb shares, of a status update for example, by the links of each share?
I will send a example:
Lets say that I update something in my timeline (or a Fan Page timeline), may 100 people share this, I wanna know, the share that have more likes...
Is possible get the page shares details, like this:
http://www.facebook.com/shares/view?id=449680915063964
But FBQuery dont analyse this..
Awaiting
Unfortunately, there is no way through Facebook Open Graph api to get such info
I need a way to learn if a user had shared a post (link, video, photo etc.) which is published by a Facebook page. I have the object_id and link of the post, and user_id of the user considered. Is there a Graph API or FQL (or something else) solution to ask Facebook if the user re-shared the post or not? Or is it possible to get a list people who shared the post? So, I can extract my answer from this list.
Note that I know it is possible to find the answer by crawling the user's wall feed. But it is time consuming and I need a more efficient way.
Thanks in advance.
You can use the following FQL to get the data you're looking for.
SELECT via_id, created_time, owner_comment
FROM link
WHERE owner = me()
You can then compare via_id against the posts author (page ID) to determine if this share came from the page in question.
Unfortunately, there seems to be a bug with the data return where some of the via_ids come back as 0. There is a ticket in with Facebook which, at the time of this post, has been open for three weeks at medium priority. I have no idea if this issue is specific to my app or affects everyone, but that's the query to get what you want.
I'm tyring to get the number of shares per post on a business page. I have read about the link_stats table which seems to have share_count for links. But I'm unable to find the share count per post. I can get number of comments and likes per post in the streams table. but share count seems to be missing. Please let me know if there is any other way to get share count per post in a page. thanks.
shares is provided as a connection on the /ID/feed endpoint, which means that you will be able to see the share count for posts in your /feed for your Page. This should really also be in the connections of an individual post, I suggest filing a feature request in the Facebook Bug Tracker for that.
We have references to other companies on our website and provide the option for people to 'like' them. After a quick skim of the Facebook documentation, I can't work out how to calculate the number of likes our website generates for others so we can measure our effectiveness. Is this possible?
Thanks
The easiest way to get this from the graph api for example https://graph.facebook.com/http://www.google.com there you can find the total number of likes and comments
You can subscribe to "edge.create" and count user likes of any like button on your site.
http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
There is another source (website or something) that have a like button with the same url? if not, you can query link_stat table using FQL to know the number of likes of a url. if yes, I think that the only option is to store the likes count in your website code, in a database or something.