Getting Facebook Events using fql

后端 未结 1 986
慢半拍i
慢半拍i 2021-01-03 16:11

Trying to retrieve facebook events through fql using the query below. I am unable to get venue details other than \"id\".

fql?q=SELECT name,description, pic_small,pi

1条回答
  •  被撕碎了的回忆
    2021-01-03 16:51

    You can get the locations for events using this FQL Multiquery.

    This will get your events and information about their venues. You'll have to write a script on your end to combine them into something usable.

    fql?q={
     "event_info":
        "SELECT name,description, pic_small,pic_big, eid,venue,location 
          FROM event WHERE eid IN 
             (SELECT eid FROM event_member WHERE uid = me())", 
      "event_venue":
         "SELECT name, username, page_id, location 
            FROM page WHERE page_id IN 
              (SELECT venue.id FROM #event_info)"
     }
    

    Facebook changed the default encoding for events sometime in April. It used to be that all location data always used to be returned. Since then only the id of the location has been returned.

    0 讨论(0)
提交回复
热议问题