I want a popup that will open when anybody wants to sign-in using facebook or any social site login. The box pops up and will close after successful login or cancel

This is code I am using for this and I know something missing please give me some hint---

<a href="https://www.facebook.com/dialog/oauth?client_id=MYCLIENTID&amp;redirect_uri=http%3A//www.MYWEBSITE.COM/fboauth/connect&amp;scope=email" class="facebook-action-connect" onclick="window.open(this.href,'popupwindow','width=700,height=500,scrollbar,resizable'); return false;"  target="_self" style="color: White; font-weight: bolder; cursor: hand; text-decoration: none">
  • 2
    Which module(s) are you using to log in to Facebook? How is your login process currently set up? – Patrick Kenny May 21 '13 at 7:45
  • Are you using D7 or D6? – Bala May 21 '13 at 8:06
  • I am usin D7 and facebook Oauth – Mohit Goyal May 21 '13 at 8:49
  • 1
    And (bearing in mind the FAQ explicitly forbids questions asking how to build an entire feature) what have you already tried yourself? – Clive May 21 '13 at 8:58
  • I am successful to open a popup box using window.open in a href tag but it should be closed and take back login info, I just want any hint How to do? – Mohit Goyal May 21 '13 at 9:03

You should try ulogin... I hope this will solve your whole problem. :)

Description:- uLogin service allows your users to login using their accounts at:

Facebook, Twitter, Google, Windows Live ID, LinkedIn and various open id.

|improve this answer|||||

I had the same problem that turned out to be the "External Links" module enabled. It saw the facebook url as external, and promptly added target="_blank", causing all clicks to open in a new window.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.