I'm trying to upload a photo for my application user on behalf of the application (by app token) according to the link:

<https://developers.facebook.com/docs/authentication/applications/>

"App access tokens can also be used to publish content to Facebook on behalf of a user who has granted a publishing permission to your application."

But I cannot make it because I'm getting an error:
{"error":{"message":"A user access token is required to request this resource.","type":"OAuthException","code":102}}

It's though I already have an approval for "publish\_stream".

The code: 

```
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);

```

Is there any way to post a photo through application token?