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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:23:49+00:00 2026-05-13T08:23:49+00:00

I have about 90% of the PHP code done for a really nice facebook

  • 0

I have about 90% of the PHP code done for a really nice facebook connect integration with my social network but I am having 1 huge problem.

This code below is supposed to show a facebook connect button on the page but instead it show nothing at all.

<body onload="initFB();">

<fb:login-button length="long" background="light" size="medium"></fb:login-button>

<script type="text/javascript">
function fbConnect() {
    FB.init("", "/testing/facebook/xd_receiver.htm",{"reloadIfSessionStateChanged":true});
}
</script>

Further more if I hardcode a html popup for facebook connect to open then when it opens it up with the connection page and seems to work, everything works now except showing any of the facebook stuff on my page before or after loggin in with it

Any ideas what could be wrong? I think it has to do something with this xd_receiver.htm file, facebook ask you to put it on your page where you want to use facebook connect, it makes there javascript work and stuff, I have tried different file paths and such to see if that made a difference but it does not seem to help

  • 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-13T08:23:50+00:00Added an answer on May 13, 2026 at 8:23 am

    It’s hard to tell what’s going on from the code you posted. It looks like your <body> has an onload event of initFB(), but that function isn’t present in the code you posted. Perhaps you mean to call fbConnect() there instead, which would call the FB.init() that you’ve specified?

    With FB.init, you have to make sure that Facebook can access your xd_receiver.htm file. This is essential. Try accessing it manually by typing in the URL you have set up and make sure it serves properly. Double-check that the relative path is correct, and make sure that you have set up the Connect URL properly in the application settings control panel. Failure to serve this file to Facebook’s servers will result in complete failure of any XFBML tags, and it sounds like that’s probably the issue here judging by the error message you’re getting.

    EDIT

    Some more points about XFBML:

    • In order for XFBML tags to work, you must specify xmlns:fb="http://www.facebook.com/2008/fbml" as an attribute in your <html> tag. Example:

      <!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">

    • You need to use the RequireFeatures call of the Facebook library to load the XFBML parser

    • You need to include the FeatureLoader.js library.

    I’d suggest taking a walkthrough of the XFBML setup docs which details all of this, and make sure you’ve got all those requirements. From the code you’ve posted, it doesn’t look like a couple of those things are there.

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

Sidebar

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.