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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:08:27+00:00 2026-05-28T16:08:27+00:00

The initialization code: FB.init({ appId: ‘123456789012345’, channelUrl: ‘http://localhost/Some/Url/FacebookChannel’, status: true, cookie: true, oauth: true,

  • 0

The initialization code:

            FB.init({
                appId: '123456789012345', 
                channelUrl: 'http://localhost/Some/Url/FacebookChannel',
                status: true, 
                cookie: true, 
                oauth: true, 
                xfbml: true  
            });

The following code is called with an onclick:

    FB.ui({
            method: 'feed',
            name: settings.facebookShareName,
            link: settings.facebookLinkUrl,
            caption: settings.facebookShareCaption,
            description: settings.facebookShareDescription,
            message: message,
            display: 'popup'
    });

This code works fine in FF and Chrome, and mostly works in IE8. The popup is shown and the user can post to their wall, but after submitting, the window doesn’t close. It turns white with no further interaction, but must manually be closed by the user.

Why doesn’t the window auto-close in IE, and/or are there any workarounds to force the popup to close?

Edit:
This issue may be related to this outstanding bug.

  • 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-05-28T16:08:28+00:00Added an answer on May 28, 2026 at 4:08 pm

    I have the same problem and have never been able to get a response from Facebook for the callback function. I don’t see anything in console.log or any alerts I insert in the function.

    My solution was to put a URL in FB.ui’s redirect_uri that goes to an HTML page with self.close (or window.close). The FB.ui popup redirects there after the user’s input and immediately closes. Remember to change your FB app’s Site URL setting so it matches the domain the file resides on.

    Here’s my code, tied to my form’s submit action. The function(response) callback is still there but not used. If anyone sees a syntax error please comment on it.

        FB.ui ({
            method: 'feed',
            name: '',
            link: '',
            picture: '',
            caption: '',
            description: '',
            actions: {name:'',link:''},
            redirect_uri: 'http://.../self.close.html'
            },
            function(response) {
                console.log(response);
                if (response && response.post_id) {
                    alert('yes');
                    self.close();
                } else {
                    alert('else yes');
                }
            });
    

    The line of code in self.close.html:

    <script type="text/javascript">self.close();</script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

var Helloworld = { onLoad: function() { // initialization code this.initialized = true; },
Lets say I need to run some initialization code everytime I match a rule
In order to ensure that some initialization code runs before main (using Arduino/avr-gcc) I
My app has three text fields: 1) Username // Initialization code usernameTextField = [[UITextField
I could do struct initialization with code: struct struct_type_id struct_name_id = { value1, value2,
My code: CGPoint *tp_1 = CGPointMake(160, 240); gives an Incompatible types in initialization error...
While reading a code I came across, the following definition and initialization of a
I've got another problem in the same code... I'm getting this error: initialization method
I have some lisp initialisation code: (eval-when (:compile-toplevel :load-toplevel :execute) (require 'asdf)) (eval-when (:compile-toplevel
Our application is using initialization code that depends on the order static code is

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.