我正在开发使用cordova的混合应用程序,应用程序与facebook使用android SDK进行了整合。 我需要用户的朋友,因为我正在使用以下fql
SELECT name,uid
FROM user
WHERE uid IN (SELECT target_id
FROM connection
WHERE source_id=me() and is_following=1)
ORDER BY name Asc
在图API Explorer和logcat(android ide)
中显示不同的uid生成图形API资源管理器
{
"data": [
{
"name": "Bharata Dumbo",
"uid": "817899964906568"
},
{
"name": "Deendayal Sharma",
"uid": "807134486015575"
},
{
"name": "Indravadan Intwala",
"uid": "813727452007073"
},
{
"name": "Manisha Parmar",
"uid": "10205158153335480"
},
{
"name": "Nitin Shah",
"uid": "1260451067"
},
{
"name": "Nitin Shah",
"uid": "100005623513169"
},
{
"name": "Smita Vora",
"uid": "323986007788625"
}
]
}
where as result in logcat::
Response getPageLike: `{"data":[{"uid":"100000597166472","name":"Bharata Dumbo"},{"uid":"792885570773800","name":"Deendayal Sharma"},{"uid":"813635845349567","name":"Indravadan Intwala"},{"uid":"10204471863338659","name":"Manisha Parmar"},{"uid":"1260451067","name":"Nitin Shah"},{"uid":"100005623513169","name":"Nitin Shah"},{"uid":"316474181873141","name":"Smita Vora"}]}`
答案 0 :(得分:0)
您的应用可能是图谱API> = v2.0应用,这意味着它使用应用范围的ID而不是像v1.0那样使用全局ID。
Graph Explorer有时固有地使用v1.0(分别为全局ID),即使从下拉列表中选择了另一个版本。
见