且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“需要指定有效用户..."使用 getCount 时出错

更新时间:2023-11-27 13:38:04

John,您不需要额外的权限.问题在于您的访问令牌.该工具使用的访问令牌是您的个人用户 访问令牌,并且仅适用于您的 uid.如果您使用应用程序 访问令牌(即 APP_ID|APP_SECRET),那么您将能够为应用程序的所有用户看到此方法的结果.

John, you don't need extra permissions. The problem is with your access token. The access token that the tool uses it your personal user access token and will only work for your uid. If you use the application access token (meaning APP_ID|APP_SECRET) then you will be able to see the result of this method for all users of your application.

api.facebook.com/method/dashboard.getCount?uid=[UID]&access_token=[appid|appsecret]&format=json>

api.facebook.com/method/dashboard.getCount?uid=[UID]&access_token=[appid|appsecret]&format=json