小编Sha*_*ani的帖子

Unity Graph Api在Unity中不授予电子邮件权限

所以我试图围绕着Unity的Facebook API,我想我已经开始了解它......直到这个

FB.Login ("public_profile, user_photos, email", AuthCallBack);
Run Code Online (Sandbox Code Playgroud)

所以你可以看到我显然要求获得电子邮件许可,但是当我尝试在Unity中调用它时

Dictionary<string, string> emailDict = new Dictionary<string, string>(){{"email", ""}};

        FB.API( "me?fields=email", Facebook.HttpMethod.GET, FBGetEmail, emailDict);

        print ("emailDict " + emailDict.Keys);
Run Code Online (Sandbox Code Playgroud)

这只会产生我的用户ID.我使用相同的新生成的访问令牌进一步深入了解Graph Explorer,我从应用程序中获得了以下内容

The field 'email' is only accessible on the User object after the user grants the 'email' permission.

{"id": "952814180948",}
Run Code Online (Sandbox Code Playgroud)

所以我的问题是......有谁知道//任何人都可以看到我做错了是不能获得电子邮件许可吗?因为在生成访问令牌时,问题显然是在初始请求中.我知道权限正在运行,因为我能够拉动并使用我的个人资料图片..不是电子邮件:'(

unity-game-engine facebook-graph-api

1
推荐指数
1
解决办法
2432
查看次数