1

私はcakephp 2.xウェブサイトを開発中です。私はfacebookとgoogleを使ってログインするのに、hybridauthを使っています。 https://example.com/hybridauth/?hauth.done=GoogleはGoogleのリダイレクトURL、https://example.com/hybridauth/?hauth.done=FacebookはFacebookです。 FacebookとGoogleを使用してログインできますが、一部のクライアントはログインできません。Cakephp 2.x hybridauth googleとfacebook loginリダイレクトURLエラー

Googleのエラー

400. That's an error 
Error: redirect_uri_mismatch 
The redirect uri in the request https://example.com/hybridauth/?hauth.done=Google does 
not match the ones authorized for the OAuth client. 

しかし、私は、開発者コンソールで同じリダイレクトURLを与えています。なぜこれが起こっているのか分かりません。 Facebookのために

URL blocked: This redirect failed because the redirect URL is 
not white-listed in the app's client OAuth settings. Make sure that 
the client and web OAuth logins are on and 
add all your app domains as valid OAuth redirect URIs 

任意のヘルプは、次の手順に従って、これらのエラーを修正するには

答えて

0

をにappriciatedされる:Googleのため
を:
1.アプリの資格情報にアクセスし、追加あなたのリダイレクトuriは、このリンクに似ていた
"https://example.com/hybridauth/?hauth.done=Google"です。 developers.facebook.comにFacebookの
1.ログインの

sample config code

、アプリを開く:あなたの "プロジェクト>アプリケーション>設定> hybridauthlib.php" このようなリダイレクトURIを追加で今
2 。今、製品の下で、このメニューからFacebookのログインの設定を選択してください:
facebook app menu
2.ホワイトリストにリダイレクトuri/webのURLを追加します。

すべて正常に動作するはずです。