Quantcast
Channel: Spring Community Forums - Social
Viewing all articles
Browse latest Browse all 145

Redirect problem with https

$
0
0
Hi,

I´m new to Spring Social and tried to connect with my application to facebook.

For this, I used the spring social quickstart and created a new app on https://developers.facebook.com/apps.

My Server has an URL like this: https://www.server.de/spring-social-app/ and I´ve put this URL as the Site URL in the Basic-page of the facebook developers site.

I replaced the App Id and App Secret in the application.properties, started the tomcat and opened the URL https://www.server.de/spring-social-app/ in my browser. Everything´s fine.

But when I push the "Sign in with Facebook"-Button, I get the following error-message:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings...

And then I saw, that the redirect_url in the URL of the browser is wrong. Instead of the "https://" there is only an "http://": ...redirect_uri=http%3A%2F%2Fwww.server.de%2Fsprin g-social-app%2Fsignin%2Ffacebook...

When I edit the URL manually to https, then i get the oauth-dialog from facebook - but the redirection after this dialog is also wrong to http://www.server.de/spring-social-app/signin, so that I get an 404 Not Found Error.

Can anyone help me with this problem?

Viewing all articles
Browse latest Browse all 145

Trending Articles