Closed punnasqrn closed 10 years ago
does it redirect to '/j_spring_security_facebook_check'? can you reproduce this by using Example App https://github.com/splix/grails-facebook-authentication-example ?
Yes, it does. it redirect to "http://localhost:8080/feed/j_spring_security_facebook_check" ( as per my grails app ) but it return "HTTP Status 401 - Authentication Failed: No cookie". Thank you.
Do you have Facebook cookie? Is it really authorized by Facebook? What domain name do you use?
Yes I got the authorization from Facebook because I can see my apps on "App Settings" on facebook and when I used fackbook sdk "FB.login(function(response)" I can access everything such as email,name ect. btw, I forgot to tell you whether this plugin works perfectly on Server Side Authentication by using "facebookAuth:connect" taglib can login logout and store everything to my database. Now I've developed on my local computer thanks.
What about cookie? And what domain name do you use on your local computer? make sure that it's not a localhost, *.local or similar, because all this domains doesn't support cookies.
PERFECTLY !! It's done. Just changed my host file ( localhost to domain name ) as you told me. That's very kind of you Mr. Igor Artamonov. Thanks again :+1:
You're welcome
Hello, As per the document(3.4 Client Side Authentication). facebookAuth:init FB.Event.subscribe('auth.login', function() { window.location.href = '/j_spring_security_facebook_check' }); /facebookAuth:init