Welcome Guest, Not a member yet? Register   Sign In
codeigniter-oauth2, problem with facebook login.
#1

[eluser]boltsabre[/eluser]
Hi gang,

I'm trying to get some social logins up and working using Phil Sturgeons "codeigniter-oauth2" spark, located here:
https://github.com/philsturgeon/codeigniter-oauth2

It's my first play with sparks, got it up and going fine. Installed it the standard way as outlined on http://getsparks.org/get-sparks (ie, my sparks folder is located in the base directory)

The link I click on to try to login is:
www.localdownundr.com/auth/sessions/facebook

I get to the facebook page, with this url in the browser:
https://www.facebook.com/dialog/oauth?cl...ompt=force

And this error code:
Code:
An error occurred. Please try later

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Missing redirect_uri parameter.

I know that this code is generated when Facebook thinks that the URLs do not match (the redirect URL must match URL listed in your facebook apps page), but mine DO match!!! (see attached screen shot!)

Anyone have any ideas why this could be failing?

I am using HMVC, but I don't think that that has anything to do with the problem, I doubt I'd even get to the facebook page if that was causing an issue. I've put a link from a module view, and a standard "application/views" view and both fail as described above.

I am developing locally still (XAMPP), but I am hiding behind a virtual host (www.localdownundr.com), I'm wondering if that is what is causing the problem?

I've tried resetting my App Id and App secret, that didn't help. I've tried changing the site url to have a trailing slashing (www.localdownundr.com/) and without it. Neither helped.

Any thoughts people???
#2

[eluser]boltsabre[/eluser]
Okay, while I'm at it, I just tried to login with google, via this url:

www.localdownundr.com/auth/session/google, and got to this url:

https://accounts.google.com/o/oauth2/aut...ompt=force

But with a google error message on the page stating:
Code:
Error: invalid_request

Required parameter is missing: response_type

Learn more
Request Details
Despite the fact that the parameter "response_type" is in the url, and has a value: "response_type=code"


Problems with WindowsLive login as well
It redirects back to the page that made the call, but the url bar has this!!!
http://www.localdownundr.com/#error=unsu...iption=The provided value for the input parameter 'response_type' is not valid. Expected values are the following: 'code', 'token'.

And no data is returned.

Is there something seriously wrong with Phils Spark, or have I missed something completely?




Theme © iAndrew 2016 - Forum software by © MyBB