first thanks in advance for any body can help.
im using drupal for facebook to login to my site , the designer is asking to theme this button("login").
haw can i take the href link to place it on a specific image to work as the login image ??

i mean to stop popup page when pressing login and replace with a normal href redirect.

Comments

thedavidmeister’s picture

Component: I am lazy and not paying attention » Facebook Connect

I have a feeling that unless you can find a documented part of the facebook API to achieve this you'll have to hack up the login form with javascript after it renders which goes against point 3 in section I of the developers platform policies http://developers.facebook.com/policy/#policies

You must not circumvent (or claim to circumvent) our intended limitations on core Facebook features and functionality.

Dave Cohen’s picture

Facebook gives you some options and as far as I know you're allowed to change the appearance of the login buttons. I'm not sure if the question here is "how do I override theme('fb_login_button')" - which is a basic theming question you can find the answer elsewhere on drupal.org. Or is the question, "how do I make a link that logs a user into facebook?"

There's a couple answers to that latter question, because facebook relatively recently started supporting links described here: https://developers.facebook.com/docs/authentication/server-side/

However, with modules/fb 3.x, your best bet is a link like <a href="#" onclick="FB.login(); return false;">...</a>

See theme_fb_login_button() for more complicated markup designed to show the right thing when user is connected or not.

MohammadMoussa-Lebanon’s picture

thank you very much . :)

<a href="#" onclick="FB.login(); return false;">...</a>

is what i needed to finish this issue .

thanks a gain.

thedavidmeister’s picture

Status: Active » Fixed

.

Automatically closed -- issue fixed for 2 weeks with no activity.