Want more features on Pastebin? Sign Up, it's FREE!
Guest

sports teams and athletes FQL

By: a guest on Sep 28th, 2011  |  syntax: JavaScript  |  size: 0.26 KB  |  views: 190  |  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. });
  7.  
clone this paste RAW Paste Data