用fql执行自联接

时间:2014-07-11 15:42:43

标签: facebook facebook-fql

SELECT f1.uid1, f1.uid2
FROM friend AS f1
JOIN friend AS f2
    ON f1.uid1 = f2.uid1
        AND f2.uid2 = me()
JOIN friend AS f3
    ON f1.uid2 = f3.uid2
        AND f3.uid1 = me()

该查询遇到以下错误:

{
  "error": {
    "message": "(#601) Parser error: unexpected 'AS' at position 40.", 
    "type": "OAuthException", 
    "code": 601
  }
}

FQL不支持自联接吗?如果你能用AS别名表,它是如何工作的?

1 个答案:

答案 0 :(得分:1)

FQL不支持JOIN。查看https://developers.facebook.com/docs/technical-guides/fql/了解可用功能。