PHP user update without login

Hey, I looked at this https://backendless.com/feature-45-updating-user-account-using-user-service-api/. I tried using this for a user object with PHP, but gives User not logged in or wrong user id.

Should this work with PHP also?

Cheers!

Hi, JuhaHuh.
I have tried you task and all works fine.

Please, investigate our documentation:
https://backendless.com/mobile-developers/quick-start-guide-for-php/

Nope, doesn’t work. Here’s the code I’m using and I still get an error: “User not logged in or wrong user id.”
So I don’t have a user logged in when doing this.
Is this also a question of permissions or why is this not working?

	$updateuser = new BackendlessUser();
		$updateuser->setProperty("objectId", "xxxxx"));
	if (empty($u->getProperty("facebook_id")))
		{
 			$updateuser->setProperty('facebook_id', "yyyyy");
			$updated_user = Backendless::$UserService->update($updateuser);

		}