** Pastebin PRO Accounts Spring Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!

sports teams and athletes FQL

By: a guest on Sep 28th, 2011  |  syntax: JavaScript  |  size: 0.26 KB  |  views: 202  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. FB.api({
  2.         method:'fql.query',
  3.         query:'SELECT page_id, name, type FROM page WHERE type IN ("PROFESSIONAL SPORTS TEAM", "SCHOOL SPORTS TEAM", "ATHLETE") AND page_id IN (SELECT page_id FROM page_fan WHERE uid = me())'
  4. }, function(data) {
  5.         console.log(data);
  6. });
clone this paste RAW Paste Data