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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:03:04+00:00 2026-05-19T04:03:04+00:00

I have a website that integrates a fan box and a few other things

  • 0

I have a website that integrates a fan box and a few other things from facebook. to get everything to look right, i’ve implemented FBML as follows:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">

it does actually work just fine, except I’ve found that my client’s company has a block in place on employees so they can’t access Facebook. This however is causing the site to blow up and not load completely as the firewall won’t allow the FB code on this site to fire correctly.

As I don’t have this block in place, i’m having trouble replicating it remotely and haven’t been able to pin point exactly what it’s doing that’s causing it to display incorrectly.

In short, is there something I can implement in the code to check and see if FB is accessible and only fire the fbml if it is? I’m using PHP and Jquery primarily for the site.

Thanks in advance.

edit: Code snippets as requested

From the beginning:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">

Then within the page calling a fanbox:

<div id="fbbox">
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
        <div id="fb-root">
            <fb:fan profile_id="xxxxxxxx" width="235" height="200"  connections="12" stream="false" header="false" css="http://www.xxxx.com/xxxx.css?33" ></fb:fan>
        </div>
    <script>
    <!--
        window.fbAsyncInit = function() {
            FB.init({appId: 'xxxxxxx', status: true, cookie: false, xfbml: true});
        };
        (function() {
            var e = document.createElement('script'); e.async = true;
            e.src = document.location.protocol +
            '//connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);
        }());
    -->
    </script>
</div>      

I have xxx’ed out some of the specific settings, but I can assure you these are correct in the actual code.

  • 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-19T04:03:04+00:00Added an answer on May 19, 2026 at 4:03 am

    depends on how the site is blocked.
    you could just load a small image from facebook, and then check the dimensions in javascript. so you see if they turn out to be correct.
    for that i would suggest using the permanent url of your profile picture you get from the api docs, as it wont change and always delivers an image of the same size (according to the docs).

    ex: http://graph.facebook.com/joseph.hopfgartner/picture

    you could also play with the facebook cross-site-script reciever.

    another possibility is to load something from facebook in an iframe. the location property will (as the only property) be readable by your site. you could use an url that will be redirect (as for example the profile picture url).

    however this was to answer your question, but i think its not a solution. your site should really not “not load” if some resources are blocked!

    your html attributes can’t cause that so you messed something else up

    could you provide more code or a link on your implementation?

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

Sidebar

Related Questions

I have a website that in a few months is going to have traffic
I have a website that includes a few loading Gifs that spin while certain
Possible Duplicate: HTML Compress File Upload? I have complains from client that my website
I have a website that needs to be integrated deeply to facebook using open
I am willing to build a wiki-based website that would have some other features,
I have taken over development of a website that integrates with Netsuite. The main
I have an ASP.NET MVC 3 website that works perfectly in IIS7 integrated mode.
So basically I have website that has names of cities that can be checked
I have a website that is mainly based on JavaScript. It uses a REST
I have a website that is mirrored cross two sub-domains. So I have separate

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.