问题描述
我试图获取一个地方或用户的签名时,我有一个奇怪的行为:结果总是一个空数据数组:
I have a strange behavior when trying to get the checkins of a place or user: the result is always an empty data array:
{
"data": [
]
}
当我使用图形浏览器时,会发生这种情况: / 4 / checkins
This happens when I use the Graph Explorer: /4/checkins
或使用FQL时: code> select checkin_id,author_uid,page_id,从checkin的时间戳,其中page_id = 111856692159256
or when I use FQL: SELECT checkin_id, author_uid, page_id, timestamp from checkin where page_id = 111856692159256
或使用javascript时:
or when using javascript:
FB.api("/me/checkins", function(response){
console.log(response);
});
我总是使用access_token,即使是具有所有权限的人也可以使用。只是没有结果。
我读过,这个签到现在已经发布了位置,所以我尝试了 / 4 / posts?with = location
,但还是没有运气。我有没有某种错误或限制(国家/应用程序权限)?
I always use an access_token, even ones with ALL permissions available. Simply no result.I read, that checkins are now post with locations, so I tried /4/posts?with=location
, but still no luck. Is there some kind of bug, or restriction (country/app-permissions) I am missing?
编辑:我现在很幸运,可以得到我的一些朋友的签名。这就像一个50/50的机会...
I now got lucky and can get of SOME of my friends their checkins. It's like a 50/50 chance...
推荐答案
有两个差异命令,一个命令是获取用户的url签入:
There are 2 differences commands, one command is the url to get the user checkins:
-
/ me / checkins
将返回当前用户的所有签入(生成令牌的用户) -
/< USERID> / checkins
将从当前用户可以看到的用户ID
。 -
/< PLACEID> / checkins
将返回所有当前用户在这个地方进行签到的朋友
/me/checkins
will return all checkins of the current user (the user that generate the token)/<USERID>/checkins
will return all checking from theUser ID
that the current user can see./<PLACEID>/checkins
will return all friends of the current user that made checkin at this place
所以,可能你没有朋友在id 111856692159256
So, probably you have no friends that made checkins at the id 111856692159256
这篇关于无法获得facebook checkins,数据数组始终为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!