简体   繁体   English

Facebook Unity SDK登录问题

[英]Facebook Unity SDK login problems

When using the Facebook Unity SDK for Unity3D Android, I find that I have to pick my poison when the user is trying to login to FB from my game. 当使用用于Unity3D Android的Facebook Unity SDK时,我发现当用户试图从我的游戏登录FB时,我必须选择毒药。

FB App is installed: FB App已安装:

    FB_PERMISSIONS = "basic_info,publish_actions" // works
    FB_PERMISSIONS = "public_profile,user_friends,publish_actions"; // App goes from landscape to portrait, flashes a dialog and changes back to landscape. Login fails.

FB App NOT installed (uses webview login dialog): 未安装FB App(使用Webview登录对话框):

    FB_PERMISSIONS = "basic_info,publish_actions" // fails: "Invalid Scope: basic_info. Use public_profile, user_friends instead"
    FB_PERMISSIONS = "public_profile,user_friends,publish_actions"; // works

I am using the FB Unity SDK 5.1.0. 我正在使用FB Unity SDK 5.1.0。 I notice that games like Subway Surfers forces webview regardless of whether the FB app is installed. 我注意到,无论是否安装了FB应用程序,诸如Subway Surfers之类的游戏都会强制执行Webview。 Any ideas? 有任何想法吗?

Have you tried using just "user_friends,publish_actions" ? 您是否尝试过仅使用“ user_friends,publish_actions”

The "public_profile" permission seems to be granted automatically. 似乎自动授予了“ public_profile”权限。 I can't test this right now so please, let me know if it works. 我目前无法对此进行测试,所以请让我知道它是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM