是否可以FQL拥有特定手机的朋友列表?(来自wallpost源的查询)
我注意到手机上的每张墙贴都会有类似的内容
44 分钟前通过 BlackBerry
3 小时前通过 iPhone
,如果我们点击单词“BlackBerry”或“iPhone”,它将重定向到
http://www.facebook.com/mobile/?v=6628568379(iPhone)
或http://www.facebook.com/mobile/?v=2254487659< /strong>(对于黑莓)
我们是否可以通过使用上面的这些来源来为拥有特定手机的用户朋友(或访问“v”值)进行 FQL?
I've notice that each wall post from mobile phone will have something like
44 minutes ago via BlackBerry
3 hours ago via iPhone
and if we click on word "BlackBerry" or "iPhone", it'll redirect to
http://www.facebook.com/mobile/?v=6628568379 (for iPhone)
or http://www.facebook.com/mobile/?v=2254487659 (for BlackBerry)
Is there anyway we can FQL for user's friends with specific phone (or access "v" value) by using these source above ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法专门查询“使用特定设备的朋友”,但通过新闻提要,您可以为某些用户确定这一点。
查看“流”FQL 表:https://developers.facebook.com/docs/reference/fql/stream/
使用具有 read_stream 权限的 access_token 之一您可以去的用户浏览新闻源中的帖子并检查 app_id 列以查看哪个应用程序用于发布该故事。显然,这只会为那些最近发布了应用程序用户提要中可见内容的用户显示设备,但这只是一个开始
正如您所注意到的,移动客户端可以从新闻提要中识别出来,其中一些是:
一个示例查询似乎给出了你想要的内容:
答案如下:
从这里我可以看到第一个 (截图)用户使用 Android,接下来的两个用户使用 iPhone 应用程序
There's no way to query specifically for 'friends who use a certain device', but via the news feed you can determine this for some users
Check out the 'stream' FQL table: https://developers.facebook.com/docs/reference/fql/stream/
With an access_token with the read_stream permission for one of your users you can go through the posts in their news feed and check the app_id column to see which app was used to post the story. Obviously this will only surface devices for those users who've recently posted something which is visible in your app user's feed, but it's a start
As you've noted, the mobile clients are identifiable from news feed, some of which are:
A sample query which seems to give what you want is:
The answer to this looks like:
From this i can see that the first (snipped) user uses Android, and the next two use the iPhone app