【问题标题】:Graph API - how to get ID of user by username [duplicate]Graph API - 如何通过用户名获取用户 ID [重复]
【发布时间】:2015-06-30 10:05:06
【问题描述】:

Facebook API 端点

 https://graph.facebok.com/{username} 

最近两周停止工作。像 www.findmyfacebookid.com 这样的临时页面没有返回正确的结果,但现在它们工作正常。

我现在如何从 Graph API 中获取 userId?

我知道使用 data-hovercard 参数的 stagne 解决方法。方式描述here。但是,我很难相信他们使用了如此奇怪的解决方案,尤其是我知道可能使用另一种方式并且没有中断的工具。有人知道更有效的方法来获取这些数据吗?感谢您的帮助。

【问题讨论】:

    标签: facebook facebook-graph-api


    【解决方案1】:

    您不应再使用用户名,只能使用您在授权用户后获得的 App Scoped User ID。我假设这些工具切换到解析 Facebook 用户配置文件,根据 scraping terms 是不允许的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-21
      • 1970-01-01
      • 2019-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-20
      相关资源
      最近更新 更多