错误:https://graph.facebook.com/app_id/insights/share_views/day?access_token=
我正在尝试使用以下方法获取已查看从我的网站共享的页面的用户数量: https://graph.facebook.com/app_id/insights/share_views/day?access_token=
我正在填写我的 app_id 和 access_token,但收到以下错误响应: Array ( [error] => Array ( [type] => OAuthException [message] => (#604) 无效的指标名称:share_views ) )
有没有人遇到此错误并确定原因?
I am trying to get the number of users who have seen pages shared from my site using: https://graph.facebook.com/app_id/insights/share_views/day?access_token=
I am filling in my app_id and access_token and I am getting an error response of:
Array ( [error] => Array ( [type] => OAuthException [message] => (#604) Invalid metric name: share_views ) )
Has anyone run into this error and determined the cause?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您需要实际指定您尝试访问的时间段。有关正在运行且可以访问 Insight 数据的应用程序示例,请查看此处 https://github。 com/facebook/insights-api-sample。
请注意,他们在此文件中指定了自和直到 post 参数:
https://github.com/facebook/insights-api -sample/blob/master/php/results.php
I believe you need to actually specify time period you are trying to access. For an example of an application that is working and can access Insight data, check here https://github.com/facebook/insights-api-sample.
Notice that they specify a since and until post parameter in this file:
https://github.com/facebook/insights-api-sample/blob/master/php/results.php