简体   繁体   中英

how can i change image for “fb:login-button” when doing facebook login

i have implement facebook OAuth for my application.

I want to change the standard image provided for facebook login and want to put my custom.

在此处输入图片说明

Is there a way to do?

How can i do it?

I'm not sure this will work, but it worths a try:

a. Go to http://developers.facebook.com/docs/reference/plugins/login/ , get the code for the Facebook login button. The HTML part is like:

 <div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div> 

b. Add a new class for that div, and style it.

I myself often don't use the tag Facebook provided though, but instead use their links and re-style it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM