0

I'm trying to replicate the results of the graph api call:

graph.facebook.com/[fbid]/likes

using FQL so that I can obtain the likes of multiple people using a single call. Anyone know if this is possible / how to do it?

MZamkow
  • 305
  • 1
  • 2
  • 6
  • Hmmm, having a quick look on FB documentation..it seems that the method provided can actually give you a list of users who liked an object! which is exactly the opposite...it seems that you can't even get the likes of a single user! – ifaour Jan 25 '11 at 22:24
  • Actually the method above can be used either with a user fbid to get a list of their likes or with an object id to get a list of the users that like the object – MZamkow Jan 27 '11 at 22:23

2 Answers2

0

You can use SELECT page_id,name FROM page WHERE page_id IN (SELECT page_id FROM page_fan WHERE uid in (....). Hope this was helpful. I found the answer in this discussion. Since this was one of the first pages I came across, I thought I should link it to the answer

Community
  • 1
  • 1
Sandeep
  • 46
  • 2
0

FQL can supposedly support multiqueries. Check out this page: FQL Multiquery

which says:

"query2":"SELECT name, url, pic FROM profile WHERE id IN (SELECT uid FROM #query1)"
Eli Albért
  • 686
  • 1
  • 6
  • 16