In Facebook, How to got "all users" who likes my post? - facebook

I use Graph API Explorer to get who is like my post..
but the worst case is, if someone like my post again, the previous user will not shown again..
How can I got all the users who like my post??
I want to know all the users because I want send messages to all people who like my post..
Is that others way to do my idea?
Thanks

Try graph.facebook.com/post_id/likes
This will give you all the people who liked the post with post_id

https://graph.facebook.com/v2.9/POST_ID/likes?access_token=PAGE_ACCESS_TOKEN
this will give you all the users who liked your post with all there specification
try hitting it once

Related

Extract facebook users IDs who like or comment a post

I wonder if anyone knows or has a tool which allows to extract the list of users IDs who liked or commented a Facebook post (especially a page post).
I've tried many softwares that claim performing this task in vain...
If you have a miracle, please share the love. I'd be glad to have either a software name, a java script, or anything that can do so.
Thank you all.
Would you mind telling what are you going to do with this?
Answer
263907926200 is the sample post id used
Through browser
https://graph.facebook.com/263907926200/comments
https://graph.facebook.com/263907926200/likes
Through API Explorer
->/v2.2/263907926200/comments
->/v2.2/263907926200/likes
FQL Method if you have an old app
Likes
https://graph.facebook.com/fql?q=SELECT user_id FROM like WHERE post_id = "xxxxx_xxxxx"
Comments
https://graph.facebook.com/fql?q=SELECT fromid FROM comment WHERE post_id ="xxxxx_xxxxx"

Facebook see who took my quiz

Our client would like to have a simple quiz that everyone can take, and if the user want, they can share the result on Facebook. Pretty much similar like this: http://www.whichblankareyou.com/q/which-alcoholic-drink-are-you
The only thing is; the client thought of randomly giving away a price to one of the users who shared their results on Facebook, this to encourage more people to really share their result (and thus generating more 'buzz' on Facebook about it)
Is it possible to do this? and if so: how ?
After your user posts a story a post_id is returned by the facebook and this is of the form-
userid_postid
So, you can fetch the id before _ and that will be the id of the user who shared the story.
Hope that helps! :)

How to sort FB Shares by likes

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

How to check if a Facebook page post shared by a certain user?

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.

How do I get a list of friends who clicked "Like" on an external page?

PART A -
There are many many questions like this, but none of them seem to provide a working solution. I want to get a list of friends who clicked the Facebook "Like" button on an external site.
NOTE: This is NOT for a Facebook page. In this case, I know I can query the page_fan table.
To get the list of Facebook page-likes for example, I can use the url_like table. I guess I just want a way to invert this table. I know I cannot get a list of ALL people that liked a link due to privacy concerns, but I want a list of my friends alone - which should be fine.
I know facebook does this internally every time I see a Facebook Like button... right below that there is statistics about my friends that also like the same link. How do I get this using FQL?
PART B
Equivalently, how do I get a list of friends that shared a specific URL as a link? I cannot search the link table by url because that is not indexed. Also, the link_id is not the same as the Open Graph ID of the URL.
I tried select link_id from link where url="http://urladdress.com/a/b.html" and owner in (select uid2 from friend where uid1=me()) but that neither throws an error not returns anything... just stalls.
Part A: you can't.
Part B: you can't the way you are trying. You might be able to get the feed for every one of the users friends and look for that url from their feed, but it will be painfully slow.
Lots of people would like to know this but Facebook is (rightfully so) not giving this information out. That is why you see lots of questions regarding it but no working solutions.
You could possibly look into the read_insights permission. You might not be able to get the exact information about "likes" (yet)... but you will be able to get other possibly useful information.