FirebaseUI Auth - Facebook Login error : Unsuccessful debug_token response from Facebook

后端 未结 9 3035
夕颜
夕颜 2021-02-13 14:00

I\'m trying to integrate FirebaseUI Auth library. Google sign-in and Email sign-in are working fine but I have a problem setting up Facebook Login. This is my code:



        
相关标签:
9条回答
  • 2021-02-13 14:42

    For me, resetting the App Secret did the trick. Go to Settings --> Basic and then click 'Reset' beside your 'App Secret'

    0 讨论(0)
  • 2021-02-13 14:43

    This issue started appearing after I changed the google-services.json in my app.
    I changed this so it points to new Firebase environment. This new environment also uses a new Facebook app registration.

    I checked all settings for my new environment:

    • Facebook App ID in Firebase
    • Facebook App secret in Firebase
    • Android Key Hashes in Facebook

    Everything was correctly configured, but the I still got the error.

    After a long search I realized that the new build did not fully clean my Flutter solution. So the new build still used they old cached google-services.json.

    After a flutter clean and flutter build it worked as it should.

    0 讨论(0)
  • 2021-02-13 14:43

    I had the same problem and couldn't figure it out for hours. It is most likely a wrong App-ID within your firebase auth configuration (facebook). In my case, I had entered the bundle name of my app instead of the App-ID of facebook. Hope it helps.

    app configuration within firebase console

    0 讨论(0)
  • 2021-02-13 14:44

    Go to Facebook developers page and select your app from the dropdown menu. Then go to Settings -> Advanced and find Is App Secret embedded in the client? select No from the toggle button and done. Refer this image link if you face any difficulty finding the option. Facebook Login error : Unsuccessful debug_token response from Facebook

    0 讨论(0)
  • 2021-02-13 14:50

    I have the same problem, the facebook auth on firebase was enabled but pointing to another application id that is different with one I am working on.

    So need to make sure the application id from "firebase console/ authentication/ sign in method/ facebook" is the same with application id on your facebook console.

    I took me several hours to figure out, hope it useful.

    0 讨论(0)
  • 2021-02-13 14:51

    I had the same problem and resolved it after re-checking the App Secret on the top right of the screen at Facebook developers page. Make sure the App Secret in Firebase Authentication(Facebook Provider) is the same as the app secret in Facebook developers page.

    App secret on Facebook developers

    0 讨论(0)
提交回复
热议问题