Difference between revisions of "Build Facebook Cross-Domain Communication Channel"

From ADF Docs
Jump to: navigation, search
(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…')
 
(Creating Cross-Domain Communication Channel File)
 
Line 5: Line 5:
  
 
== Creating Cross-Domain Communication Channel File ==
 
== Creating Cross-Domain Communication Channel File ==
# Create a file named "xd.htm" and place it into the root of your site
+
# 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.
# Place the following code into your "xd.htm" file:
+
 
 +
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:
 
<source lang="java">
 
<source lang="java">
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1

Latest revision as of 19:33, 11 April 2010

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