更改facebook连接按钮的图像 [英] Changing the image of facebook connect button

查看:102
本文介绍了更改facebook连接按钮的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我需要更改Facebook连接按钮的图像.我使用

Hello All,
I need to change the image of facebook connect button. I use

<fb:login-button>Login with Facebook</fb:login-button>


如何将该图像更改为我的自定义图像?
在此先谢谢您.


How can I change this image to my custom image?
Thanks in advance.

推荐答案


没有直接的方法可以更改图像,可以像在代码示例中一样轻松地更改文本.如果您正在使用FB XFBML标签进行身份验证,则可以通过传递不同的参数值来更改按钮的大小,但是不提供用于更改背景图像的参数.
您可以查看官方页面 http://developers.facebook.com/docs/reference/plugins/login [^ ]

有一种可能的解决方法,如果您可以使用jqury覆盖此CSS或使用类似的库来包含您的图像,则XFBML可以使用此css类的"fb_button_rtl"来加载背景图像,然后它可能会起作用,但是请务必阅读FB条款并使用其api的条件.

there is no straight way to change the image, you can change the text easily like you did in your code sample. you are doing authentication using FB XFBML tag, you can change the size of the button by passing different parameter values, but no parameter given to change the background image.
you can take a look at the official page http://developers.facebook.com/docs/reference/plugins/login[^]

there is a possible workaround, XFBML use "fb_button_rtl" this css class to load the background image, if you can override this css with jqury or using similar library to include your image then it might work, but be sure to read the FB terms and condition to use their api.


这篇关于更改facebook连接按钮的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆