Questions tagged [pfuser]

The PFUser class is a local representation of a user persisted to the Parse Data.

@interface PFUser : PFObject <PFSubclassing>

The PFUser class is a local representation of a user persisted to the Parse Data. This class is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness.

Many APIs responsible for linking a PFUser with Facebook or Twitter have been deprecated in favor of dedicated utilities for each social network. See PFFacebookUtils, PFTwitterUtils and PFAnonymousUtils for more information.

To find more information :

223 questions
3
votes
0 answers

How to Restrict Access Parse.com API to One Only Session Token (One Device) per Time?

I'm developing an App that use Parse.com as a Backend : I Can Login from any device with the same PFUser in the same time I Can Change anything in One device and see the change immediately in the other device In Small words, Everything works…
Kingofmit
  • 2,066
  • 1
  • 17
  • 22
3
votes
4 answers

Swift & Parse - PFUser currentUser never equals nil

I am using Xcode, Swift, and Parse. When I try and logout a PFUser, i never get a return of nil. In this part of the app, the viewController is simply showing a few buttons one logs in. One sends the user to signup. One sends the user to change…
Midaero
  • 65
  • 2
  • 5
3
votes
2 answers

How to change PFUser password in Swift?

I've tried updating the same way you would update a PFUser's email and even tried converting obj-c code (from other questions); neither worked. I also have no idea how to use Cloud Code (well...I installed it but I don't know how to pass information…
nick9999
  • 601
  • 1
  • 8
  • 22
3
votes
1 answer

Getting error while creating PFAnonymousUser using Parse iOS SDK

In iOS application i am using Parse SDK. I am creating Parse Anonymous user using the code [PFAnonymousUtils logInWithBlock:^(PFUser *user, NSError *error) { if (error) { NSLog(@"Anonymous login failed."); } else { …
KAREEM MAHAMMED
  • 1,675
  • 14
  • 38
2
votes
1 answer

Error: An appName, publicServerURL, and emailAdapter are required for password reset and email verification functionality

I have an iOS mobile app written in Swift. I am using Parse Server as my backend and I am trying to implement password reset. The documentation only suggests adding the code below which I have…
Jayyunit
  • 55
  • 1
  • 1
  • 9
2
votes
1 answer

'The class PFUser must be registered with registerSubclass before using Parse.'

I've looked around and all the other answers do not work for me, I'm trying to query PFUser, but I keep getting an exception of 'The class PFUser must be registered with registerSubclass before using Parse.' This is where the issue occurs: override…
trever
  • 961
  • 2
  • 9
  • 28
2
votes
1 answer

Parse Anonymous users does not persist and causing session errors

I am currently using Parse's Anonymous user, creating an anonymous user at didFinishLaunchingWithOptions using the logic that if no [PFUser currentUser] is detected, then make one: if ([PFUser currentUser]){ NSLog(@"there is a current…
daspianist
  • 5,336
  • 8
  • 50
  • 94
2
votes
0 answers

Linking email with existing facebook user on Parse

I've implemented the following functionality in my iOS app. Sign up with an email as new PFUser with some details. Sign up as new user using Facebook. Now I want to link/merge Facebook with my existing account. For I'm able to do it…
Vakas
  • 6,291
  • 3
  • 35
  • 47
2
votes
1 answer

Parse.com IOS, cannot fetch a pointer to PFUser

I am following the tutorials on Parse.com but I don't seem to get it working properly. Here is my issue. I have a class called Questions and a class named _User of type PFUser (it has a picture icon next to the class name). User logins via FB and is…
ghostrider
  • 5,131
  • 14
  • 72
  • 120
2
votes
1 answer

How to pull file from user class parse swift

In my app, when a user signs up, he/she signs up, an image is added to the user class. The code used to do this is... var newUser = PFUser() let imageData = UIImagePNGRepresentation(self.imageView.image) let imageFile = PFFile(data:…
Aidan Kaiser
  • 501
  • 5
  • 17
2
votes
1 answer

Perform logout segue

I have this error : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CustomLogin.LogoutViewController logoutButton:]: unrecognized selector sent to instance 0x7feaf340ea70' I have 3 VCs, of which two are ok,…
ramx
  • 47
  • 1
  • 7
2
votes
2 answers

Parse Facebook Login/Signup Not Working (Swift)

I've been frustratingly trying to implement Parse's Facebook login function into my app using Swift for over a month and can't seem to figure it out. I successfully linked my app to both Facebook and Parse separately, but I can't make a Parse user…
Armin
  • 1,271
  • 3
  • 17
  • 31
2
votes
2 answers

How do I Save an Image PFFile in localdatastore while Offline Parse.com?

I'm developing an App that use Parse.com Server to Store PFUsers Informations and Classes for each PFUser. I'm able to save everything to the server when i'm online but i would like use the app also when there's no Internet connect which means to…
Kingofmit
  • 2,066
  • 1
  • 17
  • 22
2
votes
1 answer

Create new PFUser using code without logging in as this new PFUser

I am creating a new PFUser to be a "sub user" of the currently logged in user. For example Master is logged in and decides to create a Junior User. The Junior user will have a different PFRole to the Master. I can create a new User via var…
DogCoffee
  • 19,820
  • 10
  • 87
  • 120
2
votes
2 answers

parse.com swift - does not have a member getUserObjectWithId

I need to save an object into Parse with pointer to User table. At first I try to get PFUser object by objectId var query = PFUser.query() var user = query.getUserObjectWithId(a.id) or try that var user = PFUser.getUserObjectWithId(a.id) and got…
hodov
  • 69
  • 3
  • 7
1
2
3
14 15