By default, the FB Unity SDK will try to use the FB App to login if the user has it installed. Otherwise, it will fall back to using a HTML based popup to let the user login.
However the FB App only works with API 1.0 ("basic_info" permission). Will fail with "Invalid permissions" on "public_profile".
The webview dialog only works with API 2.0 ("public_profile" permission). Will fail with "Invalid Scope: basic_info. Use public_profile".
The best fix would be to force the sdk to ignore the FB App and use webview to login all the time. Can this be done in Android?
Yes, try this
openRequest.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
Or, if you use old fb sdk
authorize(activity, permissions, FORCE_DIALOG_AUTH, listener);
在最新的SDK中,使用FB.Mobile.ShareDialogMode将默认行为设置为webview。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.