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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:41:09+00:00 2026-06-12T11:41:09+00:00

Extremely relevant: http://code.google.com/p/facebook-actionscript-api/issues/detail?id=256 Specifically: I’ve discovered that popups are blocked unless triggered by a

  • 0

Extremely relevant:

http://code.google.com/p/facebook-actionscript-api/issues/detail?id=256

Specifically:

I’ve discovered that popups are blocked unless triggered by a user
action, e.g. a button click. So the solution to this problem is to
only call Facebook.login() from a MouseEvent.CLICK handler.


However on my website, this is what I do and the popup is still blocked:

$('#fb-login-button').click(function () {
    FB.logout();
    setTimeout(function() {
        FB.login();
    }, 2000);
});

Is it because the FB.login() call is being invoked by the setTimeout() function and not directly in the click handler?

Any suggestions?

  • 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-12T11:41:10+00:00Added an answer on June 12, 2026 at 11:41 am

    Yes, browser blocks your popup because of setTimeout call.

    if you remove setTimeout it won’t be blocked.

    great explanation is here:
    https://stackoverflow.com/a/7060302/384442

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

Sidebar

Related Questions

I have an extremely simple page that I'm trying to view in the Facebook
Please check out http://www.netcoremodeling.com in Chrome/Firefox/IE9, and then check it out in IE8, IE7.
This is extremely frustrating and facebook certainly doesn't provide any GOOD example documentation so
Extremely just-started-yesterday new to F#. What I want: To write code that parses the
Getting extremely confused with an adminhtml module i'm trying to write! Effectively I have
Its extremely weird since the program is iterating the file! outfolder and infolder are
This may be an extremely easy question but I can't get my head around
My problem is extremely similar to the one described in this SO question ,
I am doing some extremely large array processing. I do a global declaration of:
This is extremely strange, and I'm hoping someone will have some insights to make

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.