Hi guys
I'm sorry to ask here but I have suffering for days now and I'm unable to get this to work. I just want users to log in with Facebook and grab email. Nothing else but they keep on getting the error;
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
On my recent log messages I get;
LOCATION http://www.oflocal.co.za/hybridauth/window/Facebook?destination=node/21&...
REFERRER
MESSAGE Exception: Authentication failed! Facebook returned an invalid user id. in Hybrid_Auth::initialize() (line 169 of /usr/www/users/oflocdvzeb/sites/all/libraries/hybridauth/hybridauth/Hybrid/Auth.php).
My app setting are attached.
Any ideas why this is not working? I have followed every guide and still doesn;t work.
Thanks
Rick
| Comment | File | Size | Author |
|---|---|---|---|
| advanced3.png | 40.36 KB | rickharington | |
| advanced2.png | 59.36 KB | rickharington | |
| advanced1.png | 55.1 KB | rickharington | |
| basic.png | 26.64 KB | rickharington |
Comments
Comment #2
xaa commentedHi Rick, have you found a solution?
Comment #3
rickharington commentedHi xaa
I suffered on this for ages. Eventually went with https://www.drupal.org/project/social_login
It's paid but only after 2000 registered per year.
Sorry can't be more help.
Comment #4
zeroduh commentedFor me it was the plugin HybridAuth, this method (getAcessTokenFromCode() in Hybrid/Providers/Facebook.php) was setting the wrong redirect_uri, because we have a mobile cache that set some parameters in the url. When the function is called its fetch the current url with all parameters in the url differing from the original redirect_uri passed on the method getLoginUrl() in base_facebook.php. A ugly fix was to call again this getAcessTokenFromCode() passing the correct redirect url:
Note that the method getAcessTokenFromCode() was needed to be public;
Sorry about the mispellings (:
Comment #5
anybodyIf you should run into these problems please see and comment #2684015: Authentication failed! Facebook returned an invalid user id