title: Getting facebook authentication running within the MeteorJS framework?
body: <p>I'm starting out my little quest into the world of the Meteor framework and I thought it'd be fun to do something a little bit facebooky with it.</p>
  
  <p>step one was to follow the create an app tutorial in meteor then add the FB code to the template as found here: <a href="https://developers.facebook.com/docs/opengraph/tutorial/#authenticate" rel="nofollow">https://developers.facebook.com/docs/opengraph/tutorial/#authenticate</a></p>
  
  <p>Sadly it doesn't seem to work on the page at all. In fact, I've just realized that if I add something like <code>alert('foo');</code> to my meteor page it doesn't execute.  Interesting.</p>
  
  <p>So Metor, despite being completely amazing doesn't work like I expect it to... (shock, horror!). </p>
  
  <p>How do I execute client side JS in this framework? (specifcially with the hope of creating a facebook JS object on the page?)</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE (Jan 2013):</strong> Meteor released 0.5.0 which has built in authentication and facebook login support.</p>
  
  <p>Documentation is here: <a href="http://docs.meteor.com/#accountsui" rel="nofollow">http://docs.meteor.com/#accountsui</a></p>
  
  <p>Essentially you run some commands in the shell </p>
  
  <pre><code>     meteor add accounts-password
       meteor add accounts-ui
       meteor add accounts-facebook
  </code></pre>
  
  <p>then in your code you add the login button.</p>
  
  <pre><code>     {{loginButtons}}
  </code></pre>
  
  <p>then you're in.</p>