Is it possible to upload photo to a album on a facebook page? (Facebook SDK)

I’m using Facebook SDK and I want to upload a photo to a certain album on a facebook page. I have created a page for testing, succesfully uploaded a photo to the wall of that page by using Graph API and granting permission with access token, but failed to upload on album. I read on some forums that it’s not possible for security reasons, but I doubt it. Any clues or tips?

Upload to wall working code:
FB.API(https://graph.facebook.com/PAGE_ID/photos,Facebook.Unity.HttpMethod.POST, ApiCallback, wwwForm);

Upload to album failed code:
FB.API(https://graph.facebook.com/ALBUM_ID/photos,Facebook.Unity.HttpMethod.POST, ApiCallback, wwwForm);

EDIT: IGraphResult returns “Error=500 Internal Server Error” and error messages “Permission error”,“insufficient permissions”, “you don’t have permission to edit the photo or album”

So most probably is a permission problem.

You are doing it wrong, as they show in this example you need to use FB.API like this:

FB.API("/ALBUM_ID/photos",Facebook.Unity.HttpMethod.POST, ApiCallback, wwwForm);

Also, make sure you are logging in with FB.LogInWithPublishPermissions instead of FB.LogInWithReadPermissions

And please use code formatting