Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook-api: what's Facebook Connect cross-domain receiver URL?

I'm trying to configure that my facebook application will be resizeable.

The docs at http://wiki.developers.facebook.com/index.php/Resizable_IFrame

talk about facebook connect cross-domain receiver URL.

and in the JS code i need to enter the 'site relative url to xd_receiver.htm'.

what's that?

what code should be in that HTML file ?

thanks

like image 433
ufk Avatar asked Apr 06 '10 13:04

ufk


1 Answers

This is a file saved to your local web server. It allows Facebook to save a cookie that you have access to. Basically, it allows Facebook Connect to work.

Easiest thing to do is just place it in your web root (http://example.com/xd_receiver.htm)

This file should contain the following:

<!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" > 
<head> 
    <title>Cross-Domain Receiver Page</title> 
</head> 
<body> 
    <script src="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?v2" type="text/javascript"></script> 
</body> 
</html> 
like image 195
Jayrox Avatar answered Nov 01 '22 15:11

Jayrox