I am trying to authenticate users via Facebook Connect using a custom Javascript button:
<form>
<input type="button" value="Connect with Facebook" onclick="window.open('http://www.facebook.com/login.php?api_key=XXXXX&extern=1&fbconnect=1&req_perms=publish_stream,email&return_session=0&v=1.0&next=http%3A%2F%2Fwww.example.com%2Fxd_receiver.htm&fb_connect=1&cancel_url=http%3A%2F%2Fwww.example.com%2Fregister%2Fcancel', '_blank', 'top=442,width=480,height=460,resizable=yes', true)" onlogin='window.location="/register/step2"' />
</form>
I can authenticate users. However, after authentication, the pop-up window remains open and the main window is not directed anywhere. In fact, this is a popup that goes to "/ register / step2"
How can I make the login window close as expected and pass the facebook session id to / register / step 2?
Thank!
source
share