Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to determine if Facebook users Unlike a URL?
    text
    copied!<p>We have a web app where we need to track users "Likes" of URLs (not Facebook pages, external ones), because they earn credits for doing so.</p> <p>To do this we're using JQuery and the subscribe (edge.create) event and it's working great. <a href="http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/" rel="noreferrer">http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/</a></p> <p>Unfortunately we can't seem to figure out a way handle the case where a user "Likes" a URL through our site, earns a credit, then goes to their Facebook Wall and "Unlikes" it, essentially cheating the system.</p> <p>I played around with these two FQL queries. The 1st is supposed to return an object ID of a URL, and the 2nd should return the list of user_ids who "Like" the URL. But they seem inconsistent and don't always return data for every case I tested.</p> <p><a href="https://api.facebook.com/method/fql.query?query=select%20id%20from%20object_url%20where%20url=%22http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/%22" rel="noreferrer">https://api.facebook.com/method/fql.query?query=select%20id%20from%20object_url%20where%20url=%22http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/%22</a></p> <p><a href="https://api.facebook.com/method/fql.query?query=SELECT%20user_id%20FROM%20like%20WHERE%20object_id=%22393958018726%22" rel="noreferrer">https://api.facebook.com/method/fql.query?query=SELECT%20user_id%20FROM%20like%20WHERE%20object_id=%22393958018726%22</a></p> <p>We'd rather not have to get the users to authorize our app with Facebook, and give us permission to access their data, in order to make this work either.</p> <p>Any ideas? Thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload