tags:

views:

152

answers:

4

Using facebook's fbml login button is it possible to use custom login/logout images??

+1  A: 

Nope that's not possible, facebook does not allow that because of its branded icon/image.

If however, you are using javascript for that, see the answer of @Nealv.

Sarfraz
+2  A: 

Yes, it is possible, using the javascript version:

<a href="#" id='fb-connect-link' onclick="FB.Facebook.init(api_key, channel_path);FB.Connect.requireSession();return false;">
            <img src="/media/default/img/button_facebook.png" alt="F" /><br />Facebook<br />(via Connect)</a>

I used this before and it works

Nealv
+1 i forgot to mention javascript possibility.
Sarfraz
:) if it hasn't changed in the meantime that is, facebook has some strange policies about changing it's api's
Nealv
A: 

Nealv's answer demonstrates old API. If you want to use new API then you need to call FB.login() method to trigger fb login dialog at any point.

serg
A: 

awesome tip. I haven't thought that it is possible to make custom facebook login button. thanks for the tip and please visit my facebook fbml templates website.

michael_vreek

related questions