Reputation: 4555
I have a facebook app that currently post an photo on the logged user webpage.
$upload_photo = $this->facebook->api('/me/photos', 'post', $photo_details);
Everything works like a charm, but now I need to post the photo to a page of which I am the admin.
I tried.
$upload_photo = $this->facebook->api('/**pagename**/photos', 'post', $photo_details);
With no luck. How can I do this? I don't need fancy permission because the app will only use my credential and I'm the admin of the page.
Thanks
Upvotes: 1
Views: 421
Reputation: 326
In order for your app to perform these privileged operations, the user must grant your app the manage_pages
permission
See http://developers.facebook.com/docs/authentication/
Upvotes: 2