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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:06:38+00:00 2026-05-16T02:06:38+00:00

I have a website which i integrate with Facebook (via FBML – JavaScript API).

  • 0

I have a website which i integrate with Facebook (via FBML – JavaScript API).

I have setup the application on Facebook as per normal, specifying the “Connect URL” to be the domain of my website.

However, my application has multiple bindings in IIS for the same website.

Such as:

http://www.bar.com.au

foo.com.au

The domains are completely different, no relationship in the name whatsoever – so a regex-style rule is not possible (ie base domain). The domains were made different due to a combination of localization and marketing. Keep in mind these domains are baked in to an already live website, in other words i cannot change this architecture.

Is there a way i can specify BOTH of these domain’s in the ONE Facebook Application settings for the “Connect URL”? Or will i have to create multiple applications?

Of course i cannot use the “Base Domain” setting as the bindings are not on the same sub-domain.

I actually have around 7 bindings in my website – so i’d rather not have to create 7 seperate Facebook applications – because this means maintaining 7 sets of API key/secret pairs in my application.

alt text http://www.freeimagehosting.net/uploads/268b234e2f.png

What’s happening of course is when im on foobar.com.au, the Facebook cookies are not available to the domain.

For the meantime, i will try and create multiple ApiKey’s – but i think i might run into issues. I’m going to have to go: “If domain is this, use this ApiKey”, then the same logic in every single call to the Graph API. Messy stuff.

So i guess my problem/question isn’t really caused by Facebook Connect, its the nature of HTTP Cookies by design.

How can i easily access these cookies cross domain? Will i need to setup a third website and direct all cookie logic to there?

  • 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-16T02:06:39+00:00Added an answer on May 16, 2026 at 2:06 am

    In my current situation, timeframes have stopped me from doing the proper solution, which is what @Yuliy has highlighted.

    For now, i have created multiple Facebook applications. But to keep it DRY, i have abstracted all that away behind exposed properties:

    private static string _ApiToken_Site1, _ApiToken_Site2;
    public static string ApiToken
    {
       get
       {
           if (Site1) return _ApiToken_Site1;
           else if (Site2) return _ApiToken_Site2;
       }
    }
    

    Not exactly clean, but the main thing is i did not have to touch my existing code at all, the smarts to work out which Api Key to use is in that property.

    For our next project release, i’ll be scrapping this and most likely implementing a WCF/ASMX web service which handles authentication from the one place (ie seperate web service on seperate domain).

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For FireFox, you can use this: https://developer.mozilla.org/en/DOM:window.getComputedStyle For IE, you… May 16, 2026 at 11:37 am
  • Editorial Team
    Editorial Team added an answer There are a couple of potential problems with your code.… May 16, 2026 at 11:37 am
  • Editorial Team
    Editorial Team added an answer You can use the join ($this->db->join();) methods provided by the… May 16, 2026 at 11:37 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a classifieds website which I am now trying to integrate SOLR into,
I have a Java application that I need to integrate our existing PHP website
I have an existing PHP website which uses a considerable amount of jQuery and
I have a website, with a user system. I want to integrate wordpress's user
I've integrated my website with Facebook Connect, authorization/single-sign on all working great. Now im
I am looking to build a new website which will require a sql server
I have an asp.net c# website I'm developing with Visual Web Developer Express Edition
I'm looking at the product Aptimize Website Accelerator , which is an ISAPI filter
I've been working with GWT for awhile, I can't find a way to integrate

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.