class XdReceiverPage(webapp.RequestHandler): def get(self): template_values = {} path = os.path.join(os.path.dirname(__file__), 'templates/xd_receiver.html') self.response.out.write(template.render(path, template_values))
In the base.html template now we need to tell Facebook JavaScript where to find our cross domain receiver file.
This shows that you can place xd_receiver.html anywhere as long as you can tell Facebook JavaScript where to find it.
and here is how the xd_receiver.html file looks like:
<!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>
Facebook documentation also describes details of xd_receiver here
0 comments:
Post a Comment