This isn’t currently (June 2012) possible because of a bug in the API: https://developers.facebook.com/bugs/206254392780441 has the details.
One workaround is to post to the /feed
connection of the page and attach an image to the feed story. That image won’t be displayed as large as a proper photo upload, but should work OK.
That bug means that posting to the /PAGE_ID/photos
connection of a Page using a User access_token
will incorrectly upload the photo to the user’s /photos
connection instead.
Posting to a page’s /photos
connection will work as expected when using the Page’s access_token
; the photo will appear on the page’s photos page, on the page’s timeline, and attributed to the Page itself (i.e ‘from’ the page)
If your app is specifically for adding content to a page, and has a server-side component, another workaround to get the photos from a user onto the page is to have the users supply a photo to you via your own interface (i.e upload it from the user’s device to your server), and use one of the page admins’ access_tokens
to get a Page access_token
and make the upload that way.