<?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>49c575067e8175d8680ae0bcf859d4eb881a5a4c</id>
    </parent>
  </parents>
  <author>
    <name>Mark Daggett</name>
    <email>heavysixer@mark-daggetts-macbook-pro.local</email>
  </author>
  <url>http://github.com/sethbc/rails-templates/commit/7763d9d1d1f3c27c59dbb47d9dff1b6c4c6c21af</url>
  <id>7763d9d1d1f3c27c59dbb47d9dff1b6c4c6c21af</id>
  <committed-date>2009-04-05T09:33:48-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: Seth Chandler &lt;sethbc@sethbc.org&gt;</message>
  <tree>3f72cc1c3343492f3f2bac2f452a67b21692b9a5</tree>
  <committer>
    <name>Seth Chandler</name>
    <email>sethbc@sethbc.org</email>
  </committer>
</commit>
