<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -76,6 +76,7 @@ class FbController &lt; ApplicationController
       begin
         @user = @facebook_session.user
         puts &quot;*** profile #{@user.name}&quot;
+        puts &quot;*** profile #{@user.pic}&quot;
       rescue StandardError=&gt;exc
         puts &quot;StandardError: #{exc.to_s}&quot;
         @user = nil
@@ -101,6 +102,7 @@ class FbController &lt; ApplicationController
       user = @facebook_session.user
       ZackPublisher.register_feed_role(user)
       ZackPublisher.deliver_feed_role(user,params[:id])
+      flash[:note] = &quot;Your Facebook profile has been updated&quot;
       redirect_to :action =&gt; &quot;index&quot;
     rescue StandardError=&gt;exc
       puts &quot;StandardError: #{exc.to_s}&quot;</diff>
      <filename>app/controllers/fb_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,6 +12,9 @@
     .error
       = h flash[:note]
   &lt;fb:login-button length=&quot;long&quot; onclick=&quot;facebook_button_onclick();&quot;&gt;&lt;/fb:login-button&gt;
+  %br
+  go to
+  = link_to &quot;Facebook&quot;,&quot;http://facebook.com&quot;
   
   %br
   %br
@@ -19,7 +22,9 @@
   %br
   - if @user
     %h2
-      = h @user.first_name
+      = image_tag @user.pic
+      %span{:style=&gt;'font-size:160%'}
+        = h @user.first_name
       wants to...
   - for role in [:bubbles, :zack]
     .role
@@ -27,10 +32,11 @@
       %br
       = link_to image_tag(&quot;#{role.to_s}.png&quot;), :action =&gt; &quot;post_comment&quot;, :id=&gt;role
   
+  = javascript_tag &quot;window.api_key = '#{Facebooker.api_key}';&quot;
   &lt;script type=&quot;text/javascript&quot;&gt;
   FB_RequireFeatures([&quot;XFBML&quot;], function()
   {
-  FB.Facebook.init(&quot;2b1c5fd3ca446d22bce5ca37ea877c39&quot;, &quot;/connect/xd_receiver.htm&quot;);
+  FB.Facebook.init(window.api_key, &quot;/connect/xd_receiver.htm&quot;);
   FB.Facebook.get_sessionState().waitUntilReady(function() { } );
   });
   &lt;/script&gt;</diff>
      <filename>app/views/fb/index.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,3 @@
-window.api_key = &quot;2b1c5fd3ca446d22bce5ca37ea877c39&quot;;
 
 /*
  * Ensure Facebook app is initialized and call callback afterward</diff>
      <filename>public/javascripts/zack.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>log/development.log</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>745c2cdf1c0b21ec5628ec502818383c61eabb29</id>
    </parent>
  </parents>
  <author>
    <name>Chris Hobbs</name>
    <email>chris@spongecell.com</email>
  </author>
  <url>http://github.com/ckhsponge/zacknmiri/commit/7a54a115f89f272f4e3e82845c17d9983adb4b5e</url>
  <id>7a54a115f89f272f4e3e82845c17d9983adb4b5e</id>
  <committed-date>2008-10-22T17:57:54-07:00</committed-date>
  <authored-date>2008-10-22T17:57:54-07:00</authored-date>
  <message>better use of api keys</message>
  <tree>abef66052054b8aacf2ba44d2d2135478b5df23c</tree>
  <committer>
    <name>Chris Hobbs</name>
    <email>chris@spongecell.com</email>
  </committer>
</commit>
