I was about to get the facebook video shares. I have tried the below URLs for getting the share counts, it seems to be giving the URL share counts instead of the actual video sharer counts.
https://developers.facebook.com/docs/reference/fql/link_stat/
(and) using Graph API
For example:
The below video has video share counts as 384 as of Mar29 2012
https://www.facebook.com/video/video.php?v=23155051776
But the above methods are giving the share counts as either 1 or 5. Please let me know the way to get the video sharer counts using API methods.
Thanks in advance.
This is currently not possible, you should add your voice to the feature request bug here:
https://developers.facebook.com/bugs/289679207771682
Related
Is there a way to get link statistics for multiple URLs using only one GET request?
Something along the lines of https://graph.facebook.com?links=[link1,link2,link3]
I know how to get single link stats
Facebook
https://graph.facebook.com?id=mylink
Twitter
http://cdn.api.twitter.com/1/urls/count.json?url=mylink
Linkedin
https://www.linkedin.com/countserv/count/share?format=json&url=mylink
There is not. Furthermore, Twitter will be removing their link statistics API call in November - see https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
I know how to query the social engagement counts for a regular website. It can be pretty easily achieved with the facebook graph explorer (https://developers.facebook.com/tools/explorer/) or throug api's. As path I supply the url of an object, e.g. an website e.g. https://developers.facebook.com/tools/explorer/?method=GET&path=http%3A%2F%2Fwww.manuelfink.de&version=v2.0
However if I try the same for a youtube movie https://developers.facebook.com/tools/explorer/?method=GET&path=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBpxVIwCbBK0&version=v2.0 it allways returns me the shared count of https://www.youtube.com/watch.
Is it possible to get the facebook shared/likes count for an youtube movie?
Thx, I really appreciate your help!
For share and like count, I think you can find an answer in the following questions on SO:
Get top videos on facebook/twitter, which is based on
How do you get the total likes for a URL (Likes and Shares)?, and
How to get share counts using graph API. Remember that a Youtube video has more than a possible url, so you may have to make several queries with different urls for the same video. I am not sure you can get the comments, but you can try with how can I get all comments from a url in facebook?
I want to download a video from facebook to the clients local drive. I saw a few browser plugins and Facebook apps that are able to that and I was wondering how it can be done using the GraphAPI or in any other way.
First, you get the Graph API object. If the object is public, it's simple, just get https://graph.facebook.com/10151651550011063. (Where the number is the object's ID, equal to the ?v=OBJECTID in the facebook video URL.)
If the object is not public, you need a valid access_token, and the Graph API url becomes something like https://graph.facebook.com/10151651550011063?access_token=DFSDSGSFDGFGDSblabla
Then, in the Graph API object, you'll find the video download link under source.
Refer Below Link. Might help you
http://developers.facebook.com/docs/reference/api/video/
1/ You can get source video by api but it only in sd quality.
2/ If you need to get source video by api, make sure you know to get accesstoken by this way:
Go to https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed
Search for EAAA... it is your accesstoken.
3/ https://graph.facebook.com/v10.0/(page/group/userid)_videoid?fields=source&access_token=your_accesstoken
example https://graph.facebook.com/v10.0/1389311341281276_2668264723385925?fields=source&access_token=your_accesstoken
finally you can get private video or public video from facebook by graph api
$idPage/feed?fields=message,link,created_time,type,name,id,source
source => will return url mp4 video post
You cannot download videos using api.
You can just get there links,likes,comments etc.
Is there any way to pickup stats for video or photo facebook object (not youtube videos shared on facebook)?
Stats like:
views
shares
likes
I've tried here: https://graph.facebook.com/817129783203 but with no luck.
Any ideas?
Thanks in advance!
M.
As far as I know, you can't access the number of photo/video views. However, in your case, likes may be accessed by querying:
https://graph.facebook.com/817129783203/likes.
Facebook Query Language (FQL) doesn't support COUNT, so you need to get likes number by counting the number of returned results (realized by an external method).
Is it possible to get an facebook profile picture under https using the new Graph API?
We run a site under https, but the profile picture returned by the facebook Graph API is always served as http (when using https://graph.facebook.com/XXX/picture, the request is redirects to http:// ...). The result is the dreaded mixed-content message.
Anybody know of a workaround?
Here is the fix:
you need to the parameter: return_ssl_resources=true
example:
https://graph.facebook.com/FB_UID/picture?return_ssl_resources=true
Use link 1 to get a high resolution image, link 2 to get an icon sized image where 'xxxx' refer to 'facebook_user_id'.
link 1 :
https://graph.facebook.com/xxxx/picture?type=large
link 2 :
https://graph.facebook.com/xxxx/picture?type=small
The Graph API is essentially a very basic API, it's probably not the most efficient method to grab images. A better alternative is to learn how to uSe "FQL" and create a FQL that grabs all the UID's profile pictures. This way, instead of hundred and hundreds of calls, which can be very slow, you grab all the info you need in one call.