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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:03:02+00:00 2026-06-04T02:03:02+00:00

I am trying to integrate Facebook into my webpage so users can update their

  • 0

I am trying to integrate Facebook into my webpage so users can update their status from my site. Right now I have a button a user clicks to update their status, the button calls the updateFacebookStatus() function. When this button is clicked right now, a blank white window pops up saying “waiting for http://www.facebook.com”. This window is where it should be asking for permission but the window just times out. Any ideas: Here is my code for the function updateFacebookStatus().

    function updateFacebookStatus()
    {

//Ask for permissions
    FB.login(function(response) 
    {

    }, {scope:'publish_stream, offline_access,manage_pages'});

     FB.getLoginStatus(function(response) 
     {

//If user is logged it and given permissions update status
      if (response.status === 'connected') 
      {

        new_status = document.getElementById('FacebookBody').value;

        //update status
        FB.api(
        {
            method: 'status.set',
            status: new_status
        },
        function(response)
        {
            if(response == 0)
            {
                alert("Your Facebook Status Was Not Updated.");
            }
            else
            {
                alert("Your Facebook Status Was Updated");
            }
        }

      );} 
      else 
      {
        window.location.href = "#home";
      }
     });
    }

In my html file I get the Facebook javascript sdk using the following code:

        <script src="http://connect.facebook.net/en_US/all.js"></script>
        <script>
              FB.init({
                appId  : 'XXXXXXXXXXXXX',
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml  : true, // parse XFBML
                channelUrl : 'http://www.XXXXX.com/channel.html', // channel.html file
                oauth  : true // enable OAuth 2.0
              });

              // Load the SDK Asynchronously
              (function(d){
                 var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
                 if (d.getElementById(id)) {return;}
                 js = d.createElement('script'); js.id = id; js.async = true;
                 js.src = "//connect.facebook.net/en_US/all.js";
                 ref.parentNode.insertBefore(js, ref);
               }(document));
        </script>
  • 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-04T02:03:03+00:00Added an answer on June 4, 2026 at 2:03 am

    not sure if it has anything to do with your problem but notice that you call the same script twice – one time via <script src="http://connect.facebook.net/en_US/all.js"></script> tag and the other via async function call under // Load the SDK Asynchronously

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

Sidebar

Related Questions

I'm trying to integrate Facebook into a site I'm developing, I have created a
I'm trying to integrate a Facebook send button into my site using Facebook app.
I am trying to integrate pages from a site I am building into the
I am trying to integrate facebook capabilities into my Android app. So, I have
I am trying to integrate facebook connect with nmy social network site, currently users
Recently I have been trying to integrate Facebook Social Plugins into a custom UIWebView
I am trying to integrate Facebook into my app and have already implemented MGTwitterEngine
I am trying to integrate the Facebook into my application, but when i am
So I am trying to integrate the facebook iOS api into my iphone app.
I am trying to integrate one of my websites with facebook connect. I have

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.