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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:26:53+00:00 2026-05-11T11:26:53+00:00

Facebook Connect I have spent a few weeks putting together a basic web site

  • 0

Facebook Connect

I have spent a few weeks putting together a basic web site which uses Facebook connect as authentication.

I have studied ‘theRunAround’, the provided example application. However the code is convoluted and uses a large number of files and classes, most of which have a lot of functionality that I have no need for. I have also had a good read of the documentation.

My code works almost all the time. However, occasionally I receive strange, unpredictable errors.

Required Features

  • Check if user is already logged in to Facebook, if so, retrieve the fb_uid, name, profile pic
  • Return a list of friends which have also connected to this application

Are there any tutorials, better than the ones provided by Facebook regarding such simple functionality?

  • 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. 2026-05-11T11:26:54+00:00Added an answer on May 11, 2026 at 11:26 am

    I wrote my own library to work with Facebook Connect as I found the one provided to be very lacking.

    I can’t provide the code as it is company code, but here’s a breakdown of what I needed to do. Hopefully you can use it and fill in the blanks easily yourself.

    1. In your application settings, configure the ‘Connect’ tab. The ‘Connect URL’ in my case is the root folder where my xd_receiver.htm file is. Also, under ‘Advanced’ I marked my app as a Web Application.

    2. Put your xd_receiver.htm file in the root folder specified above. There is a ton of documentation on xd_receiver.htm out there. This is what facebook hits when the user logs in. It will write cookies to their browser which your application can read in later to do authentication.

    3. The cookies Facebook sets are in the format of _ where APIKEY is your apps API key and is the name of the cookie. You’ll need the _session_key cookie to make further API calls. If this cookie is not set, you need to show the login button as desscribed in steps 4 – 6. Otherwise skip to step 7.

    4. You need to load in the Facebook javascript file on your page that you will have the FB login button. ==> http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php

    5. To show the FB login button, use: The Facebook JS will automatically render a facebook login button for you. It will trigger the ‘facebook_onlogin’ method that you shall define once the user is logged in so you can do something after they login.

    6. Right below the above markup, you need to call the FB init javascript to have it render the button:

      FB.init(‘YOUR API KEY HERE’, ‘ABSOLUTE PATH TO YOUR XD_RECEIVER.HTM FILE HERE’);

    7. Use the session_key as set in the cookie to make any API calls. How to make API calls is well documented.


    Hope this helps.

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

Sidebar

Related Questions

I almost have facebook connect working the way I need it on my site,
while working on facebook connect I have to retrieve an access token from a
I need to implement facebook-connect to a website where users already might have their
Facebook Connect seems like the cool new way to leverage a user's Facebook account
In Facebook's Compose Message, each name that appears in the TO field uses a
I am building a Facebook App which is heavy on Javascript. For this I
I have looked on FaceBook Developer page and found that it's possible to create
I have setup my application key and secret as well as added the facebook
I can't seem to get a facebook connect app that I am building to
I'm building a website that allows user to connect using Facebook Connect. So far

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.