title: Angular - building a "public" function (newbie)
body: <p>I'm After several days learning angularJS through converting my standart JS app to a ng one.
  I was wondering about this simple scenario: </p>
  
  <p>I have a global function called fb_connect(), 
  it can be used from any page (or any controller if you like) to make a facebook-based login.
  This function makes a simple http call and receives a JSON object contain data to move on (display a pop up, login, etc...)</p>
  
  <p>I read that I can define a Factory or a Service for my app and use it in any controller, which works fine.
  So, I created a fb_connect factory function.
  The problem is that now, in every page (every controller), I have to define that <strong>fb_connect</strong> in the constructor of every controller - for example : </p>
  
  <pre><code>function welcome($scope,fb_connect){});
  </code></pre>
  
  <p>What is the proper way to do this kind of actions using Angular without having to define these functions each and every time in every controller?</p>
  
  <p>Thanks</p>