         if user.objectId == PFUser.currentUser()!.objectId {
             return
         }
-        
+
         let followActivity = PFObject(className: kPAPActivityClassKey)
         followActivity.setObject(PFUser.currentUser()!, forKey: kPAPActivityFromUserKey)
         followActivity.setObject(user, forKey: kPAPActivityToUserKey)
         followActivity.setObject(kPAPActivityTypeFollow, forKey: kPAPActivityTypeKey)
-        
+
         let followACL = PFACL(user: PFUser.currentUser()!)
         followACL.setPublicReadAccess(true)
         followActivity.ACL = followACL
-        
+
         followActivity.saveInBackgroundWithBlock { (succeeded, error) in
             if completionBlock != nil {
                 completionBlock!(succeeded: succeeded.boolValue, error: error)

        let facebookId = user.objectForKey(kPAPUserFacebookIDKey) as? String
        return (facebookId != nil && facebookId!.length > 0 && facebookId == PFFacebookUtils.session()!.accessTokenData.userID)
    }
   
    class func userHasProfilePictures(user: PFUser) -> Bool {
        let profilePictureMedium: PFFile? = user.objectForKey(kPAPUserProfilePicMediumKey) as? PFFile
        let profilePictureSmall: PFFile? = user.objectForKey(kPAPUserProfilePicSmallKey) as? PFFile
        
        return profilePictureMedium != nil && profilePictureSmall != nil
    }

    class func defaultProfilePicture() -> UIImage? {
        return UIImage(named: "AvatarPlaceholderBig.png")
    }
    
    // MARK Display Name

    class func firstNameForDisplayName(displayName: String?) -> String {
        if (displayName == nil || displayName!.length == 0) {
            return "Someone"
        }
        
        let displayNameComponents: [String] = displayName!.componentsSeparatedByString(" ")
        var firstName = displayNameComponents[0]
        if firstName.length > 100 {

                let query = PAPUtility.queryForActivitiesOnPhoto(photo, cachePolicy: PFCachePolicy.NetworkOnly)
                query.findObjectsInBackgroundWithBlock { (objects, error) in
                    if error == nil {

                        var likers = [PFUser]()
                        var commenters = [PFUser]()

                        var isLikedByCurrentUser = false

                        for activity in objects as! [PFObject] {
                            if (activity.objectForKey(kPAPActivityTypeKey) as! String) == kPAPActivityTypeLike {
                                likers.append(activity.objectForKey(kPAPActivityFromUserKey) as! PFUser)
                            } else if (activity.objectForKey(kPAPActivityTypeKey) as! String) == kPAPActivityTypeComment {
                                commenters.append(activity.objectForKey(kPAPActivityFromUserKey) as! PFUser)
                            }

                            if (activity.objectForKey(kPAPActivityFromUserKey) as! PFUser).objectId == PFUser.currentUser()!.objectId {
                                if (activity.objectForKey(kPAPActivityTypeKey) as! String) == kPAPActivityTypeLike {
                                    isLikedByCurrentUser = true
                                }
                            }
                        }

                        PAPCache.sharedCache.setAttributesForPhoto(photo, likers: likers, commenters: commenters, likedByCurrentUser: isLikedByCurrentUser)
                    }

                    NSNotificationCenter.defaultCenter().postNotificationName(PAPUtilityUserLikedUnlikedPhotoCallbackFinishedNotification, object: photo, userInfo: [PAPPhotoDetailsViewControllerUserLikedUnlikedPhotoNotificationUserInfoLikedKey: false])
                }

