Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2009
    Posts
    25

    Default Facebook integration for multi-tennant/domain installation

    Hi,

    I've got 6.20.0r8 working great on Ubuntu 10.04. I'm testing out the Social integration with some users and they love it. However, I have a problem that I'm sure is not unique to my installation.

    I have a single server hosting multiple domains, and a single OX installation installed on a virtual server aliased so that anyone requesting mail.* from the server will get OX.

    This works perfectly, and has done for many years.

    However, the facebook connector does not account for this. Effectively only one domain can be used with the connector.

    When I configure the app in Facebook I give the "main" URL for the server (although this is no less valid than any other), e.g. mail.myhosting.com.

    When a user accesses their email they can do so using mail.usersdomainname.com and log in with their email address and password. In fact, they would be able to use the webmail address of any domain hosted on the server.

    However, the OX connector (sensibly) rewrites the facebook request URL with a redirect_uri set to the URL the user used to access the server - necessarily different to mail.myhosting.com.

    I only have one OX installation, so can only create one facebook app for this. Facebook does not let you add multiple URLs for the app and OX does not let you add multiple api keys and secrets and associate them with domains.

    Therefore, with this style of installation, the facebook connector is unusable.

  2. #2
    Join Date
    Feb 2007
    Location
    Dortmund, Germany
    Posts
    168

    Default

    Please have a look at http://oxpedia.org/wiki/index.php?ti...#Configuration. There is the possibility to use facebook with more than one domain. You only have to set the http deferrer url and must generate a facebook key for that domain.
    Markus Wagner
    Open-Xchange Quality Assurance

  3. #3
    Join Date
    Dec 2009
    Posts
    25

    Default

    I tried that - I still get the OAuthException "Invalid redirect_uri" from Facebook, even though com.openexchange.http.deferrer.url and "Site URL" on the Basic settings page of the facebook app both match (the facebook configuration pages now look completely different to the setup guide provided btw).

    I can see in the URL of the window that opens to do the facebook auth that "redirect_uri" is still the name of the server used by the user and not the name of the server as set in facebook or in com.openexchange.http.deferrer.url.

  4. #4
    Join Date
    Feb 2007
    Location
    Dortmund, Germany
    Posts
    168

    Default

    is the "open-xchange-http-deferrer" package installed?
    Markus Wagner
    Open-Xchange Quality Assurance

  5. #5
    Join Date
    Dec 2009
    Posts
    25

    Default

    No, but:

    # apt-get install open-xchange-http-deferrer
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package open-xchange-http-deferrer


    I have the relevant entries in apt-sources as described in the document mentioned; the entire OX installation was installed using apt.

    There's no mention of open-xchange-http-deferrer anywhere in that document....?

  6. #6
    Join Date
    Feb 2007
    Location
    Dortmund, Germany
    Posts
    168

    Default

    You're right, this package is only in the update repository. So you need a valid maintenance license.
    Markus Wagner
    Open-Xchange Quality Assurance

  7. #7
    Join Date
    Dec 2009
    Posts
    25

    Default

    Weird! Why make one component of this Community and another not? Especially as it's effectively a beta feature!

  8. #8
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Hi,

    the reason is, that the deferrer package has been developed after the final release of 6.20 (rev8). Therefor it's only available through the latest updates or through the unsupported "snapshot" repository.

    Greetings

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •