How to get the "shares" of a wall post with FQL - facebook

I can't find them in the "stream" table, nor if with a "link_stat" query... any solutions ?

I think there is no such table (like the "like" table) in fql,but if you want to query the share count, you can retrieve it from the graph api without fql (see here for a share count example). Unfortunately, there seems to be no option yet to get the user or user-ids who shared a facebook object, just the share-count. Correct me if i´m wrong..

You can get them via "link_stat" table.
https://developers.facebook.com/docs/reference/fql/link_stat/

Related

Get all Posts and Comments made by "me()"

i am trying to retrieve all posts and comments "me()" created. But I dont find any way to do this. There only seem to be a way to retrieve the posts on the "me()"'s wall - but no way to retrieve all posts created by "me()" on the walls of other users.
The obvious way would be to use the actor_id field in the streams table, but thats not indexed, so the query wont work.
Google didn't return a solution either - even through i expected this to be a common problem ?
I already know how to retrieve all statuses and likes but posts and comments seem to be unsolvable...
Any Ideas?
Thanks
https://graph.facebook.com/me/posts will return what you're looking for.
You need the read_stream permission to access this resource. (documentation)
You definitely want posts of type status and wall_post.
Currently, there doesn't seem to be a way to retrieve the same data over FQL.

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.

Acessing likes on comments an videos in 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/

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"

Ways to query Facebook Graph "do I like x?"

I'm setting up my app to basically do what the FBML 'like' button does: like, unlike and show like count, for objects from the user's "me/home" stream.
I have no problem doing any of the above functions, but I'm having a very tough time getting the api to tell me if the user likes the thing already (so I can set the button to 'unlike'). The graph api is telling me I'm not allowed to search user's likes. Is there an FQL solution?
Thanks
There is like table where you can check through FQL if someone likes something.