Facebook - 通过外部网站上的 API 进行页面洞察?
我见过很多地方讨论如何从 Facebook 应用程序中获取页面洞察。我正在尝试使用我的图形工具无需应用程序在我的网站上显示用户页面的见解。
我可以让他们提供登录信息,或者如果我需要将我的网站与他们连接等等,我可以这样做。有谁知道我将如何获取这些信息?
I've seen many places talk about how to get page insights from within a facebook application. I am trying to show user's page's insights on my websites with my graphing tools without an application.
I can have them provide login information, or if I need to connect my website with them, etc. etc., I can do that. Does anyone know how I would go about getting this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 read_insights 权限。
https://developers.facebook.com/docs/reference/api/permissions/
您的流程是要求用户连接到您的应用程序并请求 read_insights 权限。获得访问令牌后,您可以查询其域/页面/应用程序的数据。
Look at the read_insights permission.
https://developers.facebook.com/docs/reference/api/permissions/
Your flow would be to ask the user to connect to your app and ask for the read_insights permission. Once you have the access token, you can query the data of their domains/pages/apps.
您还应该请求离线访问权限,这将允许您更新见解而无需等待用户登录。
You should ask for the offline_access permission too, that will allow you to update the insights without having to wait for the user to log-in.