Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting users who like a web page with Facebook graph API

I'm struggling with the Facebook API. What I want to do is to be able to look at a user's feed, see which web pages they clicked "Like" on, and then get the other users who like the same web page. I'm having two problems.

1) Whenever I get the feed of a user, all of the "Likes" are removed from the feed. Its very frustrating because its like Facebook will give me everything except for exactly what I'm looking for!

2) I can't seem to get a list of user IDs who like a certain URL. I've tried using FQL like this:

SELECT user_id FROM like WHERE object_id=114324145263104

As was suggested in another SO question, but that returned nothing on all of my attempts.

Does anyone know how to do this, or if its even possible? Thanks for your help!

like image 822
LunaCodeGirl Avatar asked Nov 26 '22 15:11

LunaCodeGirl


1 Answers

There is a different query for getting the linkes of a url

SELECT url FROM url_like WHERE user_id = me()

In your case it is.

SELECT user_id FROM url_like WHERE url = "http://www.domain.com/"
like image 177
Daan Avatar answered Dec 26 '22 04:12

Daan