I want to create new album via graph api for the page that user manages. I have the manage_pages permission and I can upload single photos to page (FB collects them to the album with app name) and I believe that I can upload photos to album specified by id (as mentioned in documentation). But there is nothing about creating new album for pages via api calls. I’ve tried to use the way that describes how to create album for user:
$fb->api("/".$account->getAccountId()."/albums", "POST", array('name' => 'my new album'));
but this request returns me the following error message: (#100) Invalid ID for album owner. Is there any way to create an album for the FB page?
Thanks
When you make the call to POST the new album, you must use a PAGE access token. You can get that page access token from the array returned when you call
me/accounts.You can try it in the Graph API Explorer tool: https://developers.facebook.com/tools/explorer