Build Facebook Cross-Domain Communication Channel

From ADF Docs
Revision as of 02:22, 11 April 2010 by Rwest (talk | contribs) (Created page with '== Overview == The text below was copied from [http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site#Enabling_Communication_Between_Your_Site_and_Facebook E…')
(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. Create a file named "xd.htm" and place it into the root of your site
  2. Place the following code into your "xd.htm" file:
<!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