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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:17:29+00:00 2026-05-28T07:17:29+00:00

Alright, probably not the best title, but meh. I have the following code inside

  • 0

Alright, probably not the best title, but meh.

I have the following code inside my <head> tag on my WordPress theme’s header.php that checks whether I have Facebook enabled.

<?php if ($config['social']['facebook']['enabled']): ?>
<script type="text/javascript">
    <?php echo sprintf('window.fbAsyncInit = function() { FB.init(%s); }', json_encode( $config['social']['facebook']['data'] )); ?>

    // 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>
<?php endif; ?>

This outputs the following to the browser:

<script type="text/javascript">
        window.fbAsyncInit = function() { FB.init({"cookie":true,"fbml":true,"oauth":false,"status":true}); }           
        // 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>

Noting that I have fbml, however, when I try to use FBML, it doesn’t work. I’ve reviewed Facebook’s Developer Docs about the issue. I do have the xmlns setup:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#">

I don’t know why the developer docs are a mess, but I can’t find anything that isn’t contradicted there (when I do find developer help, not explanations on their features) :/

Thanks in advance!

  • 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-28T07:17:30+00:00Added an answer on May 28, 2026 at 7:17 am

    FBML is deprecated and you should use one of the newer technologies. See: https://developers.facebook.com/docs/reference/fbml/

    You should recode your app to use the new JavaScript SDK (or other SDK of your choice that uses the Graph API.

    Your init function is missing your AppId as well as channelUrl. You also wont be using oath parameter anymore since the SDK is not using only the oauth 2. I should look like:

    FB.init({
      appId      : 'YOUR_APP_ID', // App ID
      channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });
    

    See: https://developers.facebook.com/docs/reference/javascript/ for more information on how to work with the JS SDK.

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

Sidebar

Related Questions

Alright, I know questions like this have probably been asked dozens of times, but
Alright, I have been doing the following (variable names have been changed): FileInputStream fis
Alright this probably is the worst error I have found ever. I have two
Alright, I have a fairly simple design. class Update(models.Model): pub_date = models.DateField() title =
Alright, this is probably a really silly question but I am new to Python/Django
This is probably a silly question, but I'm following a videocast about Rails, right
This sounds simple, and probably is... Alright, so I have two tables, users and
Alright, Im going about this, with what is probably a really complicated solution, but
Alright, so as you probably know, static inheritance is impossible in C#. I understand
Alright, currently I have my SWF hitting a php file that will go and

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.