質問

Laravel noob here.

I'm getting a response "Authentication failed! Facebook returned an invalid user id.". I believe I followed this example correctly.

1. My Website with Facebook Login is set to http://localhost.com
2. HybridAuth config. Base url is set to http://localhost.com/laravel4/public/social/auth/
3. I tried running samples from HybridAuth on the same server, same facebook app id and app secrete; all seems to work okay except when using Laravel framework.
4. Ran updates (Laravel 4 and HybridAuth).

I would appreciate any ideas.

役に立ちましたか?

解決

Is there a trailing slash in the base_url variable of your hybridauth config? Removing it fixed the problem on my end.

# app/config/hybridauth.php
return array(
    "base_url"   => "http://your.site.com/social/auth",
    ...
);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top