Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:44:50+00:00 2026-06-07T16:44:50+00:00

hopefully you can help me with this issue. I’ve grabbed the basic login button

  • 0

hopefully you can help me with this issue.

I’ve grabbed the basic login button code from the FB developers site and I’m writing it out as is:

<div id="fb-root"></div>

<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=345451695525893";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



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

The only customisation I’m doing is overriding the default “Log in” text with my own text (in this case “test text”). This works fine when I’m logged out of facebook, but interestingly, when I log in to facebook (via the facebook site on another tab), and then come back to visit my page, the custom text flashes, then the button is rendered a second time with the default “Log in” text.

Any ideas, or is this a feature by design from Facebook?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:44:52+00:00Added an answer on June 7, 2026 at 4:44 pm

    Given the recent changes to the fb-login-button component (which as of a week or so ago seems to ALWAYS rewrite custom text to “Log In”), your best bet is to create a custom CSS class for a Facebook button and trigger FB.Login via Javascript. That’s what I did and it’s working nicely.

    Here’s some CSS for a Facebook button that looks exactly like the standard Facebook button and supports custom text easily:

    a.fb-button {
        color: #FFF;
        display: inline-block;
        text-decoration: none;
    }
    
    .fb-button {
        background: #5F78AB;
        background-image: url('http://static.ak.fbcdn.net/rsrc.php/v2/yf/r/S-DbSHszr4D.png');  /*COPY TO YOUR OWN IMAGE STORE*/
        background-repeat: no-repeat;
        background-position: -1px -81px;
        border-top: 1px solid #29447E;
        border-right: 1px solid #29447E;
        border-bottom: 1px solid #1A356E;
        border-left: 1px solid #29447E;
        -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8A9CC2;
        -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8A9CC2;
        cursor: pointer;
        font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
        font-size: 13px;
        font-weight: bold;
        height: 23px;
        line-height: 23px;
        padding: 0px 5px 0px 30px;
        text-align: left;
    }
    

    The element on your page would be

    <a class="fb-button" onClick="fblogin();">Custom Text</a>
    

    And then a JS function like so

    var fblogin = function() {
        FB.login(function(response) {
            if (response) {
                if (response.authResponse) {
                    //successful auth
                    //do things like create account, redirect etc.
                } else {
                    //unsuccessful auth
                    //do things like notify user etc.
                }
            },{scope:'email,publish_stream'}); //whatever perms your app needs
    };
    

    Of course you’ll need to include the fb root div on your page and and init the Facebook JS SDK before this

    Here’s how it looks:

    Facebook button with custom text

    The cool thing about the CSS is that you can use it to create other Facebook buttons on your site for things that aren’t supported (like Share) with a familiar look and feel. You can even create some additional css to allow for different size buttons. You’d just need to have different background positions for the background image and different font size, height etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully someone can help with this RelativeLayout issue I'm having. If I remove the
This issue is something which has me stumped, so hopefully someone can help. I
This is sort of a complex issue, hopefully you can help. I am using
Thank you for looking at my issue, hopefully you can help me out as
Hopefully this question is not to confusing, but I can help clear it up
Hopefully, someone here can give me some light. I have been researching this issue
Hopefully someone can shed some light onto this issue for me. I have a
Hopefully I can explain this without overcomplicating the issue, so please bear with me.
Ok, this is bit of an obscure question, but hopefully someone can help me
I have attempted this is many ways but failed consistently, hopefully you can help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.