Is it possible to know who liked my website page/post? - facebook

I want to know who are the people who liked my websites page/post. (I'm talking about like buttons inside websites and not on a simple facebook page, just to make this issue clear).
I googled this issue, and most of the answers were that I just cant do something like this, but found one answer of someone who said that I can use this: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/v2.0
to find out who liked my website page/post, But he didn't explain.
I'm not an expert, but if that's true and I can pull out the names of the users that liked my website page/post, they should first accept that their private info is being passed to an outer source.
Anyway, I didn't understand anything from the page and how this thing should help me solve the problem.
Thanks for the help and your time :)

That's not possible IMHO. The events do not Return any user data, as described in the docs.
But if you're using the JS SDK and have authenticated Users on your website, you could use the "edge.created" event in conjunction with the Element ID of the like button to find out the user liked the page/post.

Related

How to remove a Facebook page's fake likes

There's this company that has a very annoying problem. For some reason their Facebook page started generating a lot of likes. The numbers go up to 10K new likes per month.
As these likes all originate from India, it takes no genius to figure out these are all fake likes.
Obviously this is quite an inconvenient situation, because this doesn't really add any value to the company's credibility. Maybe these likes were bought by a competitor to crank up the Facebook advertising costs...
I've searched everywhere, but there doesn't seem to be a solution to somehow programmatically remove the fake likes from the list. I very well understand that there possibly is no way to mass remove all of these likes, so I'm using my last sprinkle of hope to turn to you guys.
Has anyone come across a way to do this? I would love to hear all about the community's ideas about this problem, I can't be the only one suffering from this problem.
Thanks in advance!
Perhaps not quite what you're after but here's the link to remove/block a fan from your page:
http://facebook.com/ajax/pages/fanlist/mutator.php?page_id=[PAGEID]&user_id=[USERID]&act=remove
If you could get a list of fan ID's that are fake and your page's ID a simple foreach loop, posting to that URL might do the trick.
Just for clarity, here's a PHP snippet (fill in the blanks yourself):
function postToFacebook($friendID){
...
// cURL exec
...
}
foreach($friendArr as $curFriend){
postToFacebook($curFriend);
}
This is assuming you have the friend ID's in an array which wouldn't be too difficult to get.

Is it possible to catch like event from the Facebook page?

I'm trying not to ask a dumb question that will get down voted but I really can't seem to find a yes / no for what I am looking for.
I just want to know if I can hook into the like event on the Facebook page. I have seen plenty of examples of doing so if YOU have the button on your site etc. but nothing I have come across so far tells me / shows me how to catch the event on the fb page.
I have read plenty about custom tabs and have made notes about several tabs I want to add but nothing about customizing / working with the main page.
The idea is not so much fan-gating as much as prompting them if they would like more information.
Hey you liked this you may be interested in....that sorta thing.
Thank You
here you go: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
edge.create - fired when the user likes something (fb:like).

How to know your 1000th like on facebook?

This might not be a development issue, but I'll ask it anyway, maybe there's a solution with Facebook Graph API.
Basically, I want to know who the nth (1000th, 2000th) 'like' of my page was, this is to give a prize or something like that.
I've seen a lot of pages who give prizes to their fans like this, so it must be possible.
If the above isn't possible, I'm also happy to know the 5 or 10 last likes.
Any answer is much appreciated, thanks!
This appears to be a dupe question. Please see: Getting the Nth user who like a page I am the admin of on Facebook
Also this is a bug in the API. https://developers.facebook.com/bugs/231272073596022
However, with that said, you can get to the last 500 likes via:
http://www.facebook.com/browse/?type=page_fans&page_id=[PAGE_ID]

javascript sdk - check if user has liked my facebook page (in iframe tab)

Is it possible with javascript SDK check if user has liked my facebook page (I need to check it on my iframe tab (without autorization)).
It's very simple in PHP , but I need to so it with javascript
Haha! I asked this question last week and got a neg review, which apparently infers that I posted the question without doing the proper research...haha! This is what I've found out since.
Facepile, facepile will give you a list of users images who have liked your page...pretty useless as far as I can tell.
Running the old rest api from javascript. While this is being depreciated, not all the functionality has been ported over and as far as I can tell //developers.facebook.com/docs/reference/rest/pages.isFan/ has not been ported over yet. You'll just have to keep your eyes open for when these do change so you can update when they do port it.
Querying with FQL: This looks like the go to for a lot of my stuff. Check out the //developers.facebook.com/docs/reference/javascript/FB.Data.query/ on how to call fql in the javascript sdk. Tables and columns are detailed here: //developers.facebook.com/docs/reference/fql/#tables
Good luck! Let me know if these make sense.

Facebook and suggestions

I'm trying to write a simple application that finds out who liked your page. I used FQL and a query very similar to:
$query = 'SELECT user_id FROM like WHERE object_id="149187568469862"';
The first issue is that FB returns an empty array. Maybe the data will be available in the near future.
I will describe the most important issue. If the user X liked my page, I would like to know who suggested X to like my page. Maybe nobody, but there are chances that X pressed "Like" after a suggestion coming from a friend. I browsed the documentation, but I didn't find relevant information about how can I see who liked my page as a result of a suggestion. Do you have any ideas?
Thanks,
As far as I know you can not retrieve any historical information on who referred a "like". Furthermore, as of right now facebook does not seem to allow querying for all your pages "fans" (which is basically everyone who likes your page). They do, however allow looking up all pages that a user "likes" using fql. Much of their documentation is very "skinny" on examples. I actually learned the most by downloading the facebook connect javascript toolkit which came with some client side examples of the most used functionality. https://github.com/facebook/connect-js - this may be a good place to start