HybridAuth Facebook returned an invalid user id

后端 未结 2 1237
时光说笑
时光说笑 2020-12-21 07:07

I am getting the following error:

Authentication failed. The user has canceled the authentication or the provider refused the connection.
Original error mess         


        
相关标签:
2条回答
  • 2020-12-21 07:53

    Recently this occurred due to facebook graph API change, v2.2 is depreciate https://developers.facebook.com/docs/apps/changelog

    So we need to change php facebook-sdk for facebook graph api latest version v2.8. you can download the sdk from https://github.com/facebook/php-graph-sdk

    after replacing sdk you may need to add auto-load configurations for facebook sdk.

    0 讨论(0)
  • 2020-12-21 07:59

    I just solved that problem by setting the "Is your App Secret embedded?" switch to "no" in the "advanced settings" tab on https://developers.facebook.com/x/apps/myid/settings/advanced/ .

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