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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:52:15+00:00 2026-05-20T11:52:15+00:00

I am planning to connect to Facebook chat from my localhost. I will need

  • 0

I am planning to connect to Facebook chat from my localhost. I will need to get the session key from Facebook. When I give the site URL as localhost:8080 or ip-address:8080 it does not work.

I read about setting up two apps with 2 different API keys one runs on dev m/c and other on localhost but I did not quite get it.

Can anyone explain how to run a Facebook app on localhost?

  • 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-20T11:52:15+00:00Added an answer on May 20, 2026 at 11:52 am

    I wrote a tutorial about this a while ago.

    The most important point is the “Site URL”:

    Site URL: http://localhost/app_name/

    Where the folder structure is something like:

    app_name
    ¦   index.php
    ¦
    +---canvas
    ¦   ¦   index.php
    ¦   ¦
    ¦   +---css
    ¦           main.css
    ¦           reset.css
    ¦
    +---src
            facebook.php
            fb_ca_chain_bundle.crt
    

    EDIT:
    Kavya: how does the FB server recognize my localhost even without an IP or port??

    I don’t think this has anything to do with Facebook, I guess since the iframe src parameter is loaded from client-side it’ll treat your local URL as if you put it directly on your browser.

    For example have a file on your online server with content (e.g. online.php):

    <iframe src="http://localhost/test.php" width="100%" height="100%">
        <p>Not supported!</p>
    </iframe>
    

    And on your localhost root directory, have the file test.php:

    <?php echo "Hello from Localhost!"; ?>
    

    Now visit http://your_domain.com/online.php you will see your localhost file’s content!

    This is why realtime subscriptions and deauthorize callbacks (just to mention) won’t work with localhost URLs! because Facebook will ping (send http requests) to these URLs but obviously Facebook server won’t translate those URLs to yours!

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

Sidebar

Related Questions

I am planning to implement a basic recommendation system that uses Facebook Connect or
I'm planning to develop a web app where users will list their site/blog. When
I'm building a web app that will make heavy use of Facebook connect. I'm
I'm planning on doing more coding from home but in order to do so,
I was planning to use url routing for a Web Forms application. But, after
I'm currently planning a new web project. Clients are going to connect using a
Here's the situation: we have an Oracle database we need to connect to to
I am planning to use Silverlight control for bing map. It will be used
I am trying to make an application which can connect from a mobile to
I really need your help with this. We are planning on developing a real-time

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.