<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -484,6 +484,14 @@ file 'app/views/layouts/application.fbml.erb',
   &lt;%= render_facebook_flash() %&gt;
   
   &lt;%= yield %&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
+
+    // Give JS access to the canvas page name;
+    CANVAS_PAGE_NAME= '&lt;%= ENV[&quot;FACEBOOKER_RELATIVE_URL_ROOT&quot;] %&gt;';
+    REMOTE_HOST = '&lt;%= url_for :controller =&gt; &quot;/facebook&quot;, :only_path =&gt; false, :canvas =&gt; false %&gt;';
+
+  &lt;/script&gt;
+  &lt;%= javascript_tag &quot;AUTH_TOKEN = #{form_authenticity_token.inspect};&quot; if protect_against_forgery? %&gt;
 
   &lt;%= content_tag :script, File.readlines(&quot;public/javascripts/application.js&quot;).join(&quot;\n&quot;) %&gt;
 }</diff>
      <filename>facebook.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a552d815fd7ba0ea1d5f8ff948d408aaddb86651</id>
    </parent>
  </parents>
  <author>
    <name>Mark Daggett</name>
    <email>heavysixer@mark-daggetts-macbook-pro.local</email>
  </author>
  <url>http://github.com/jeremymcanally/rails-templates/commit/10f5bc25e4067968dcf3e950a95538dcbc1f79ed</url>
  <id>10f5bc25e4067968dcf3e950a95538dcbc1f79ed</id>
  <committed-date>2009-04-09T15:48:49-07:00</committed-date>
  <authored-date>2009-02-06T10:47:06-08:00</authored-date>
  <message>adding some helpful JS hooks into the application.fbml.erb

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>e51907fae2de7d5469a8e63cf72cccf85e770855</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
