             defaults.setObject(true, forKey: "contactsPermission")
             searchForUserByEmail()
         }
+    }
+    
+    func twitterLoginPressed(sender: TWTRLogInButton!) {
+        self.twitterLogin()
     }
     
     

                    print(success)
                })
                
                // TO-DO: uncomment
                // Bool to check if user granted permission for twitter
                //                self.defaults.setObject(true, forKey: "twitterPermission")
                
                self.getTwitterFriends(-1)
            } else {

                    
                    // check for json data
                    if (json != nil) {
                        let resultdict = json as! NSDictionary
                        
                        cursorNext = resultdict.objectForKey("next_cursor") as! Int
