Posting Photo to Facebook Fan Page via iOS App by Regular Non-Admin Users

Posting Photo to facebook fan page via iOS app by regular non-admin users

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.

Posting photos to a Facebook page as a non-admin

You shouldn't need manage_pages permission. You want publish_stream.

manage_pages just allows you to obtain an access token to "log in as" an admin to a page the user has access to. Publish stream allows you to make comments and post on people's wall.

With publish_stream, you should be able to post pictures to the pages wall as long as that page's permissions allow you to do so. You won't be able to upload them to the pages album though, as that needs to be performed by an admin to the page. Just like your friends can post pictures to your wall, but they can't add photos to your albums.

Using the graph protocol, you can perform any action that both:

  1. The user you're authenticated as has permission to perform
  2. Your application has been granted permission to perform on the user's behalf.

So it's important to understand both the permission settings of both the actor (authenticated user) and the victim (the object being changed).

Why can't I post to a fan page from my iOS app?

I have fixed it I never added this key to my options dict
ACFacebookAudienceKey: ACFacebookAudienceFriends
In the Account framework header it has it marked as optional but I could not request any thing other then read permission but after adding this key to my options dictionary it worked I dont know why this makes a difference but it fix my issue with out it I could only post to my images folder and I could not request permission other then read . After adding key I can post to wall and fan page wall and request any permission I need.

facebook: upload photo to Facebook Page as a user (without administrator rights)

No, it is not possible to do this if you are not an admin of the Page in question. If you want to request this as a feature, you should file a Bug report about it.

uploading a photo to facebook page via iphone app

There is currently a bug in the Facebook api which has yet to be fixed for at least the last year, that when you try to upload a photo to a page, it uploads it to the users stream.
I have been following this bug report for a long time, and does not seem like Facebook is going to do anything about it. this is the current answer for the question. will update if anything changes.

Posting a photo to Facebook fan page as user. iOS Facebook SDK 3.1

https://developers.facebook.com/docs/reference/api/page/#photos says,

“You can post photos to a Page's Wall by issuing an HTTP POST request to PAGE_ID/photos with the publish_stream and manage_pages permissions […]”

Sounds like a “normal” user is not allowed to post images to a page’s wall via the API.



Related Topics



Leave a reply



Submit