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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:52:40+00:00 2026-05-28T06:52:40+00:00

I am currently developing a Facebook App (it’s not my first one) and I

  • 0

I am currently developing a Facebook App (it’s not my first one) and I encountered some, or a lot of problems.

The index.php file is including the content based on the $_GET['page'] variable. (e.g. ‘step1’, ‘step2’).

On ‘step2’, there is a form for uploading the video. The <input> field has an onChange() event which fires up this code:

function submitForm() {
  console.log('submitting...');
  FB.login(function(response) {
  if (response.authResponse) {
   console.log('Welcome!  Fetching your information.... ');
   FB.api('/me', function(response) {
     console.log('Good to see you, ' + response.name + '.');
     jQuery('#fuserid').val(response.id);
     
     jQuery('#uploadForm').submit();
     jQuery('.formContent').hide();
     jQuery('.loader').show();
   });
  } else {
   console.log('User cancelled login or did not fully authorize.');
   window.location = "index.php?page=contest&error=not_authenticated&signed_request=" + "<?php echo $_REQUEST['signed_request']; ?>"
  }
  }, {scope: 'email,user_birthday,publish_stream,user_likes'});
}

In Firefox, this works exactly like it should.
In any Internet Explorer version, the Facebook-Authentification popup is not opening, nor is the form submitted or anything.
EXCEPT for when the Developer Tools [those from IE] are activated and open – in this case, everything works in IE.

Chrome is similar, sometimes the popup is not opening, and I get the following error message:

Unsafe JavaScript attempt to access frame with URL
https:‍//www.facebook.com/dialog/permissions.request from frame with
URL
http:‍//mydomain.at/myapp/index.php?page=contest&signed_request=XXXX

I did some research, and research tells me that the $channelUrl should resolve this problem.
Here’s the code from my fb.init:

<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/de_DE/all.js#xfbml=1&appId=<?php echo $appID; ?>";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script type="text/javascript">
  window.fbAsyncInit = function() { 
    FB.init({ 
      appId      : '<?php echo $appID; ?>', // App ID 
      channelUrl : 'http://mydomain.at/myapp/channel.html', // Channel File
      status     : true, // check login status 
      cookie     : true, // enable cookies to allow the server to access the session 
      oauth      : true, // enable OAuth 2.0 
      xfbml      : true  // parse XFBML 
    }); 
 
    // Additional initialization code here  
    window.setTimeout(function() {
      FB.Canvas.setAutoResize();
    }, 150);
  };
</script>

Why is this Authentification-Popup not working in IE, and only sometimes working in Chrome?
Why do the Developer-Tools change the behaviour of the IE so much that everything works?

  • 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-28T06:52:40+00:00Added an answer on May 28, 2026 at 6:52 am

    For IE, the issue is probably with “console.log(…)”: console.log is available only when Developer Tools are opened. You should comment it out, or use a fallback function for logging.

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

Sidebar

Related Questions

Currently developing a PHP framework and have ran into my first problem. I need
I am currently developing an app via website and the token that Facebook returns
I'v currently developing a php facebook canvas in an IFrame. The Idea is for
I am currently developing UI for a facebook app. Basically, the game is shown
I am currently developing an app that's going to show a Facebook page's events
I'm developing a PHP website, and currently my links are in a facebook-ish style,
I'm currently developing a site which runs standalone and as a facebook app on
I'm currently developing an app for facebook. It will be used for fan-gating users
I'm currently developing for a handheld device running Windows XP Professional (not Tablet PC
I'm currently developing a PHP application that's using an Access database as a backend.

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.