是否可以FQL拥有特定手机的朋友列表?(来自wallpost源的查询)

发布于 2024-11-24 07:40:06 字数 556 浏览 2 评论 0原文

我注意到手机上的每张墙贴都会有类似的内容

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

作妖 2024-12-01 07:40:49

无法专门查询“使用特定设备的朋友”,但通过新闻提要,您可以为某些用户确定这一点。

查看“流”FQL 表:https://developers.facebook.com/docs/reference/fql/stream/

使用具有 read_stream 权限的 access_token 之一您可以去的用户浏览新闻源中的帖子并检查 app_id 列以查看哪个应用程序用于发布该故事。显然,这只会为那些最近发布了应用程序用户提要中可见内容的用户显示设备,但这只是一个开始

正如您所注意到的,移动客户端可以从新闻提要中识别出来,其中一些是:

  • 6628568379 = Facebook for iPhone
  • 2254487659 = Facebook for Blackberry
  • 41158896424 = Facebook for HTC Sense
  • 4620273157 = Facebook for HP webOS
  • 74769995908 = Facebook for Android
  • 135892916448833 = Facebook for Windows Phone
  • 139682082719810 = Facebook for Every Phone (java 客户端)

一个示例查询似乎给出了你想要的内容:

select actor_id, app_id from stream where source_id = me() limit 500

答案如下:

{
  0: {
actor_id: <snip>,
app_id: 74769995908,
  },
  1: {
 actor_id: <snip>,
 app_id: 6628568379,
},
 2: {
  actor_id: <snip>,
  app_id: 6628568379,
 },  
 ...

从这里我可以看到第一个 (截图)用户使用 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:

  • 6628568379 = Facebook for iPhone
  • 2254487659 = Facebook for Blackberry
  • 41158896424 = HTC Sense
  • 4620273157 = Facebook for HP webOS
  • 74769995908 = Facebook for Android
  • 135892916448833 = Facebook for Windows Phone
  • 139682082719810 = Facebook for Every Phone (java client)

A sample query which seems to give what you want is:

select actor_id, app_id from stream where source_id = me() limit 500

The answer to this looks like:

{
  0: {
actor_id: <snip>,
app_id: 74769995908,
  },
  1: {
 actor_id: <snip>,
 app_id: 6628568379,
},
 2: {
  actor_id: <snip>,
  app_id: 6628568379,
 },  
 ...

From this i can see that the first (snipped) user uses Android, and the next two use the iPhone app

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文