Facebook can't get video likes count - facebook-graph-api

I'm trying to get number of likes on videos. So I go like
https://graph.facebook.com/v4.0/{video_id}/likes?access_token={token}.
However I always get back empty data even if video has at least some likes.
I've created a token with following permissions: scope="public_profile,email,user_videos,manage_pages,user_likes".
The last thing to mention is that the video is posted by user page. I've also tested the same thing on Graph API Explorer and it doesn't even work there.
I for example can get comments on the same video...

The individual likes are likely not available to your app due to privacy concerns (the liking user would probably have to grant your app access to access their made likes first)
But since you are only interested in the overall number, asking for the summary should do it:
/{video_id}/likes?summary=1
or when using field expansion syntax,
/{video_id}?fields=likes.summary(1)

Related

extracting data from facebook using graph api

how can i extract name list && phone numbers of the users liking certain page ?
I have tried using software called facepager but i couldn't extract names .
note:I'm not the owner of the page
You'd most likely have to write code yourself to do something like this. However,
Almost no-one publicly shares their phone number.
Facebook try to prevent this kind of data collection.
Even when facebook list's "likers" of a page, it'll wait till you scroll down to load more. You'd have to play with your browsers debug tools and look into where it get's that data from
https://www.facebook.com/search/<group id here>/likers
In the end you'll probably not get much better than just searching for the page and clicking each person's profile because the site is designed to not let what you're trying to do happen...

Bit.ly link to Number of Facebook Likes and Twitter mentions

Programatically,
How can I get the canonical link from bit.ly?
How can I get the number of facebook likes given a canonical link?
How can I get the number of twitter mentions given a canonical link?
If I understand you correctly, you want to take a http://bit.ly/s.... link and get the original, long URL, then find out the number of likes for that long link on Facebook, and tweets containing it on Twitter. Is that all about right?
For the first part, you can use the link info API to get the long URL from bitly. It may or may not be "canonical," though. It'll just be what was shortened. So it might have extra campaign parameters.
Community Wiki in case people can help with the second two parts of the questions.

facebook graph api limit parameter

I am writing an application that needs to retrieve all posts on any given facebook page. For the McDonald's page, I would use this url:
https://graph.facebook.com/McDonalds/posts?access_token=xxx&limit=5000
The problem is that first, I do not receive any posts older than 2011-11-01 and the number of posts shown is much less than 5000. This means that the limit parameter isn't working properly. I looked this up and found that it was a known bug.
Then I tried to follow the next and previous paging information provided in the end and even using that I can't get past 2011-01-24. After following the next link 2 times, an empty page comes up. The McDonalds page is much older and contains more posts. So the question is, how on earth am I supposed to retrieve older posts. Is there any workaround at all?
There is a limit on the limit. Try using since & until to extend the date params
https://graph.facebook.com/McDonalds/posts?access_token=xxx&limit=5000&since=2+years+ago&until=now
&limit=5000&since=2+years+ago&until=now
&limit=5000&since=3+years+ago&until=now

Is it Possible to Filter Graph Feed using Location?

We have a worldwide brand page that posts brand messages and filtered by country, for example: "This is visible in the US" (visible to United States), and "This is visible to Russia" (only visible to Russia).
Main Question: Is it possible to retrieve posts on the page wall filtered by country or other location parameters? For example: https://graph.facebook.com/[userID]/feed?access_token=[accessToken]&locale=en_US
Side Question: Currently when using the URL above (without &locale...) returns only the posts available worldwide, and all targeted posts are not returned. This could potentially be due to the access token being used as I am able to return info for page feeds (that I own) for all locales using a different access token. Is there a correlation between application tokens and locales that are returned?
Forget about it - it's impossible. They never thought about providing us any interface to this.
What you must do is:
Download the entire graph object (awesome especially on mobile),
Remember to download all pages (since facebook is paging long responses),
Merge and filter them on your side (or in client's browser|phone),
Voilà you're good to go ;) .
PS. I know you asked this looong time ago, but it's still one of the first Google results for related queries, so I'm writing here so others can quickly find out. Cheers!

FAcebook like button -the meaning of the number near it

What makes up the number shown on my Like button? The number shown is
the sum of:
•The number of likes of this URL
•The number of shares of this URL
(this includes copy/pasting a link back to Facebook)
•The number of
likes and comments on stories on Facebook about this URL
•The number
of inbox messages containing this URL as an attachment.
Ok, now if user A likes something, and then user A shares the URL, will I have 2 likes displayed near the button? Or each user can only be counted once
Thanks, I try to understand this because I need to write an app around it
Facebook have a pretty good guide and API for this if you do want to make use of it.
http://developers.facebook.com/docs/reference/plugins/like/
As far as the process goes, this explanation is better than anything I could come up with. But the long and short of it is, the more people who click on it independently, the more it will increment (See below). Therefore in your example user A likes it (+1), he shares it but only when his friend clicks like when it increment again.
http://www.adsforfacebook.com/the-facebook-like-button.php