Bronson
Bronson

Reputation: 135

Laravel 4 Using HybridAuth: Facebook Provider Issue

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.

Upvotes: 0

Views: 3181

Answers (1)

MrCasual
MrCasual

Reputation: 153

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",
    ...
);

Upvotes: 5

Related Questions