title: Firebase auth anonymous in Swift2
body: <p>I am trying to integrate Firebase backend to my app.</p>
  
  <p>Created my podfile with</p>
  
  <pre><code>pod 'Firebase'
  </code></pre>
  
  <p>Everything looks fine with the sdk import </p>
  
  <p>In my first view controller I do:</p>
  
  <pre><code>    import Firebase
  
       override func viewDidLoad() {
          super.viewDidLoad()
          let ref = Firebase(url: "https://&lt;YOUR-FIREBASE-APP&gt;.firebaseio.com")
  ref.authAnonymouslyWithCompletionBlock { error, authData in
            if error != nil {
               // There was an error logging in anonymously
            } else {
               // We are now logged in
            }
          }
       }
  </code></pre>
  
  <p>But i got an <code>Can not call value of non-function type error</code></p>
  
  <p><a href="https://i.stack.imgur.com/4eCxF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eCxF.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance</p>