Posting Photos to Facebook Fan Page with iOS Sdk

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 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.

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.

Upload photo to a facebook fan page

Hey jackiedigital, I this the "manage_pages" permission is only compatible with the Graph API.

Check out the Last permission on this page: http://developers.facebook.com/docs/authentication/permissions/



Related Topics



Leave a reply



Submit