Acessing likes on comments an videos in facebook - facebook

Can anyone suggest how to track the comments and other objects (videos,photos,etc) which a user likes in facebook? Assuming that the user has registerd to my application.

You can use FQL with the like table.
http://developers.facebook.com/docs/reference/fql/like/
Reference includes examples.
But you can't get a list pf everything the user likes. If you know what object you want to track you can also use the link_stat table:
http://developers.facebook.com/docs/reference/fql/link_stat/

Related

Facebook Place Likes

I can't seem to find how to get facebook place's page like count via fql, anyone knows how this can be achieved?
I know this can be done with graph-api but I need it in fql since I already have a multi-fql query.
From the documentation:
There is a parameter called fan_count that contains the number of people who like the page.

Facebook count likes generated for an external site

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.

Facebook FQL API - Who tagged user?

I am able to retrieve tags on statuses and photos just fine. I know the fact that my user has been tagged.
For posts, (stream_tag) it's easy to assess who did the tagging since the author of the status is by definition the tagger.
I am using FQL to query photo_tag table to obtain a pid and then querying the photo table to get photo information...
However, I am trying to ascertain who is the tagger of a user in a photo. People can tag other peoples photos, and I get all that, but I would like the attribution....
Thanks!
I don't think you can. Looking at a photo on Facebook doesn't show who added each photo tag; it makes sense that the API doesn't give you this information either.
you cannot read the tagger info, unfortunately. first, because you donĀ“t even see it on facebook directly. and there is no column for this info in the photo_tag table:
http://developers.facebook.com/docs/reference/fql/photo_tag/

How to get category specific likes for a facebook user using graph API

I'm pretty new at this. I was playing with the Facebook Graph API and was able to pull all my LIKES using the call
$all_likes = json_decode(file_get_contents('https://graph.facebook.com/me/likes?access_token='.[access_token]));
Now when I display these, they have a field called category which has different values like TV Show, Book, Public Figure etc.
So my question is how do I get category specific likes - for instance I just want to fetch ALL the BOOKS that I LIKE
Obviously its possible to fetch all the likes and store them on the server side and work on it but the LIKES list is too huge for certain users and it doesn't make sense to pull everything if you just want to show a certain category.
I feel like I'm missing something.
If its not possible through the graph API call, then even a FQL solution is welcome.
Thanks for your time
R
You can use FQL, just like in this answer:
SELECT page_id FROM page_fan WHERE uid=me() AND type="MOVIE"

Get links that friends have "liked" on facebook

I was wondering how to build a FQL query where i could receive links/urls of my app that an user's friends have liked. I got the link table which looks good but there i need an object id, which i dunno how to retrieve for my urls.
You can get the object id from the object_url table.
https://developers.facebook.com/docs/reference/fql/object_url/