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 8041293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:09:50+00:00 2026-06-05T04:09:50+00:00

Anyone notice something wrong with their login button? My codes were working, suddenly they

  • 0

Anyone notice something wrong with their login button? My codes were working, suddenly they start to behave strange today and i didn’t modify any code. Here is my code to help you debug with me what is wrong possibly on my end?

I have this on header:

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
    FB.init({
    appId: '<?php echo $sofa['fbappid']; ?>',
            status: false,
            cookie: true,
            xfbml: true,
            oauth: true
    });
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());

function Facebook_login () {
    $("p.form-result").empty();
    FB.getLoginStatus(function(response) {
        if (response.status === 'connected') {
            $.ajax({
                url: '<?php bloginfo('template_directory'); ?>/ajax/fbconnect.php',
                type: 'POST',
                dataType: 'json',
                success: function(data){
                    $('.loading').remove();
                    $('input:submit').attr("disabled", false);
                    if (data.status) {
                        $("p.form-result").html('<span class="success">' + data.message + '</span>');
                        window.setTimeout(function(){location.reload()},3000);
                    }
                }
            });
        }
    });
};
</script>

I have this where is my button (facebook connect)

<div class="form-fbconnect"><div class="fb-login-button" onlogin="Facebook_login()" scope="email"><?php _e('Connect with Facebook','sofa'); ?></div></div>

Something does not look right. the button loads in funny way, and it does not work like before even though it does login user. What is going on?

Thanks in advance.

  • 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-05T04:09:53+00:00Added an answer on June 5, 2026 at 4:09 am

    You can view the current status of the Facebook platform at https://developers.facebook.com/live_status.

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

Sidebar

Related Questions

Welcome, I notice that Youtube make some changes into their website code. Anyone have
I was just wondering if anyone noticed i was doing something wrong with my
Can anyone notice an error in this coding??? NSString *textFilePath = [[NSBundle mainBundle] pathForResource:@test
i have just noticed something strange in some asp.net markup. I have a standard
I know this is something I'm probably doing wrong, so please don't incinerate me
I've just started working at a new company and noticed something that looks completely
My unit tests are doing something very strange when I call a method of
Have anyone noticed something like this? Why is it happening? ruby-1.9.2-p290 :006 > User.count
Still no answer...anyone have something better? Okay complex 2 part question here. I have
I'm building something similar to this - http://www.impressivewebs.com/demo-files/content-switcher/content-switcher.html I wondered if anyone had any

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.