Abd*_*iri 5 php facebook-graph-api
这是我的fql:
$fql = "SELECT uid, name, online_presence, status
FROM user
WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = '".$user_id."') ";
Run Code Online (Sandbox Code Playgroud)
该online_presence值总是返回null.
您的查询有错误...
只需更换
WHERE uid IN
Run Code Online (Sandbox Code Playgroud)
到
WHERE 2 IN
Run Code Online (Sandbox Code Playgroud)
询问
$fql = "SELECT uid, name, online_presence, status
FROM user
WHERE 2 IN ( SELECT uid2 FROM friend WHERE uid1 = '".$user_id."') ";
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
607 次 |
| 最近记录: |