Facebook session data not recovering

不羁的心 提交于 2019-12-11 19:33:55

问题


I'm on Unity 5.1.1, Facebook 7.0.2 beta and testing on Android 5.1 and iOS 8.4 devices.

I'm doing FB.Init(); with "status = true" to recover the session and "autologin". But my problem is that it doesn't work. When I call Init in onInitComplete callback FB.IsLoggedIn returns always false.

I have tried in my project and in a blank project with the example scene. In the example scene I click on FB.Init, FB.Login, I log in then I close the app and open again and I have to login again.

Is it a bug?


回答1:


We're having the same issue. It is a bug on Facebook's part. The result of the Init call doesn't seem to include any information about the player at all. In fact, it includes different type of useless data depending on the current platform.

Facebook has acknowledged the bug and they said it's fixed in the next build which hasn't been released yet. You can see the bug and that acknowledgment here.

https://developers.facebook.com/bugs/1459551294340956/?search_id



来源:https://stackoverflow.com/questions/31285447/facebook-session-data-not-recovering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!