Unity SDK working on Editor but not On Android device
1

Hi. We are developing a game and plan to use FB login. We tested the FB login on Unity editor with the test user token and it's working well. However, when we made a build and upload for internal testing on Google Play store, the FB login button not working at all.

After some investigation, we found that the process ended at FB.Init. We have the "FB IsInitializing" in the log, but the OnFacebookInitialized() callback is not fired (we write debug log in that function but it is not there). Also, the try catch does caught any exception. What may be the problem? I searched on the web and I found that there was a bug which the callback not called on Android devices on v7.0.3. I am using the latest 17.0.1 SDK. Could it be the bug come back?

            WriteDebug("FB IsInitializing");
            try
            {
                FB.Init(OnFacebookInitialized);
            }
            catch (Exception ex)
            {
                WriteDebug(ex.ToString());
            }
Alan
Asked about a week ago
Selected Answer
1

I finally solved the problem by downgrading to 16.0.1...

June 29 at 7:09 AM
Alan