Skip to content

Commit

Permalink
Use ParseObject::create() to create new ParseUser
Browse files Browse the repository at this point in the history
Should fix thrown exception mentioned in parse-community#128
  • Loading branch information
oflannabhra committed Jul 10, 2015
1 parent b654ba8 commit 1d0bca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parse/ParseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function logInWithFacebook($id, $access_token, $expiration_date =
]
]];
$result = ParseClient::_request("POST", "/1/users", "", json_encode($data));
$user = new ParseUser();
$user = ParseObject::create('_User');
$user->_mergeAfterFetch($result);
$user->handleSaveResult(true);
ParseClient::getStorage()->set("user", $user);
Expand Down

0 comments on commit 1d0bca9

Please sign in to comment.