문제

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