         }
         else {
             print("Error: \(clientError)")
+        }
+    }
+    
+    func twitterFollowersSliceAndCheckWithTapglue(arr: [String]) {
+        // Split all followers in 495 array pieces and Check if twitterFriends are availabe in your App
+        var followers = arr
+        var tempArrOfFollowers = [[String]]()
+        
+        while followers.count > 495 {
+            let sliceArr = followers[0...495]
+            let tempArray: [String] = Array(sliceArr)
+            tempArrOfFollowers.append(tempArray)
+            followers.removeRange(0...495)
+        }
+        
+        let sliceArr = self.followsFromTwitter![0...(followers.count - 1)]
+        let tempArray: [String] = Array(sliceArr)
+        tempArrOfFollowers.append(tempArray)
+        followers.removeRange(0...(followers.count - 1))
+        
+        print("Sliced Arr: \(tempArrOfFollowers.count)")
+        
+        // Check and add twitterFriends
+        if self.followsFromTwitter != nil {
+            var twitterUsersArr = [TGUser]()
+            for followerIDs in tempArrOfFollowers {
+                // Check if twitterFriends are availabe in your App
+                Tapglue.searchUsersOnSocialPlatform(TGPlatformKeyTwitter, withSocialUsersIds: followerIDs, andCompletionBlock: { (twitterUsers: [AnyObject]!, error: NSError!) -> Void in
+                    if error != nil {
+                        print("\nError searchUsersOnSocialPlatform: \(error)")
+                    }
+                    else {
+                        print("\nSuccessful - twitterFriends: \(twitterUsers)")
+                        
+                        for user in twitterUsers {
+                            twitterUsersArr.append(user as! TGUser)
+                        }
+                        
+                        self.users = twitterUsersArr
+                        
+                        self.users.sortInPlace({ (contact1, contact2) -> Bool in
+                            return contact1.username < contact2.username
+                        })
+                        
+                        dispatch_async(dispatch_get_main_queue(), { () -> Void in
+                            self.twitterLogInButton.hidden = true
+                            
+                            self.reloadTableViewWithAnimation()
+                        })
+                    }
+                })
+            }
+            
+
         }
     }
 }

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

                        print("Result Data: \(data)")
                        
                        for id in data {
                            self.followsFromTwitter?.append(String(id))
                        }
                        
                        if cursorNext != 0 {
                            self.getTwitterFriends(cursorNext)
                        } else {
                            // Handle all follower twitter ids at once
                            self.twitterFollowersSliceAndCheckWithTapglue(self.followsFromTwitter!)
                        }
                    } else {
                        print("error loading json data = \(jsonError)")
