Build Facebook Cross-Domain Communication Channel

From ADF Docs
Revision as of 19:33, 11 April 2010 by Rwest (talk | contribs) (Creating Cross-Domain Communication Channel File)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The text below was copied from Enabling Communication Between Your Site and Facebook

In order for Facebook Connect to function on your site, you need to upload a small file onto your server to enable communication between your site and Facebook. Then, for every file on your site where you want to integrate Facebook Connect, you need to add some JavaScript to those files to make sure you load the Facebook Connect features.

Creating Cross-Domain Communication Channel File

  1. In the root of the Paperbook application (/ADF/apps/paperbook/) there is a file named xd.htm - copy this file into the root of your site.

Create a file named "xd.htm" and place it into the root of your site Note: The code in this file should look similar to this:

<!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" >
<body>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js"
type="text/javascript"></script>
</body>
</html>

Back to the Paperbook Application