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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:20:36+00:00 2026-05-27T08:20:36+00:00

Anyone know why I might be getting the following error: e.root is undefined in

  • 0

Anyone know why I might be getting the following error:

e.root is undefined in all.js

Not really sure what I have wrong here. Here is the relavent portion of my code..

<script src="https://connect.facebook.net/en_US/all.js"></script>

<script type="text/javascript">
  window.fbAsyncInit = function() {
FB.init({
  appId      : 'xxxxxxxxxxxxxxxxxx', // App ID
  channelURL : 'https://nowfoods.marketspacecom.com/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
  };

  // Load the SDK Asynchronously
  (function(d){
 var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
 js = d.createElement('script'); js.id = id; js.async = true;
 js.src = "//connect.facebook.net/en_US/all.js";
 d.getElementsByTagName('head')[0].appendChild(js);
  }(document));

</script>

</head>
<body>

<a href="javascript:fb_publish();" class="fbshare"><img src="images/share.gif" /></a>

<script type="text/javascript">

//set the height of the canvas
window.fbAsyncInit = function() {
   FB.Canvas.setSize({height: 1250});
}


//this function will publish a post to the user's wall
function fb_publish() {

    // calling the API ...
    var obj = {
      method: 'feed',
      name: 'Get a free sample of <?php echo $getLatestPromoID['prodName']; ?> from NOW Foods!',
    link: '<?php echo $fbconfig['appBaseUrl']; ?>',
 picture: 'https://nowfoods.marketspacecom.com/images/nowicon.gif',
 caption: 'NOW Foods Free Samples',
 description: 'I just signed up for a free sample of NOW Foods <?php echo $getLatestPromoID['prodName']; ?>. You can get one too at the link above!'
    };

    function callback(response) {
      document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
    }

    FB.ui(obj, callback);
  }

</script>
<div id="fb-root"></div>

</body>

XXX X X X XX X XX X XXXXX X XXXX X XXX

XXX X X X XX X XX X XXXXX X XXXX X XXX

XXX X X X XX X XX X XXXXX X XXXX X XXX

XXX X X X XX X XX X XXXXX X XXXX X XXX

XXX X X X XX X XX X XXXXX X XXXX X XXX

  • 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-27T08:20:37+00:00Added an answer on May 27, 2026 at 8:20 am

    The “<div id="fb-root"></div>” must come before the script include I think…

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

Sidebar

Related Questions

Rails noob here so I'm not sure what I'm doing wrong. We're replacing a
Anyone know a good Regex expression to drop in the ValidationExpression to be sure
I'm getting a DoesNotExist error with the following set up - I've been trying
I am getting the following error in apache: [notice] child pid 13190 exit signal
Help Perlers! Does anyone know a simple insert code here approach would bring code
so i am getting an uncaught exception and im not sure why. this is
Anyone know if it's possible to databind the ScaleX and ScaleY of a render
Anyone know of a way to capture keyboard events (keyup / keydown) in Portable
Anyone know how to do this without using a third party program? If there
Anyone know a good book or post about how to start in EF? I

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.