fql join; can i join two tables with FQL?

后端 未结 2 1847
-上瘾入骨i
-上瘾入骨i 2021-01-03 08:34

I have the following FQL I want to join with user table to add name field! How can I do that?After I test making normal left join I got error message (601 join not possible

2条回答
  •  一整个雨季
    2021-01-03 08:59

    you need to run a nested query like

    https://api.facebook.com/method/fql.query?query=SELECT uid,pic_square, first_name, last_name from user where uid IN (SELECT uid FROM page_fan WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())AND page_id = PAGE_ID)&access_token=YOUR_ACCESS_TOKEN
    

    i need the my friend name, pic from a page whoever liked that page.so run a nested query and it worked form me

    Check this link https://developers.facebook.com/docs/reference/fql/

    Facebook have exposed their database. Hope it helps you

提交回复
热议问题