What I am trying to do is post an image that has been created by a user on an iPhone into that users newsfeed.
The functionality I am having a hard time understanding if it is possible:
Can I pass a local NSURL (or URL?)(to a png file that lives in the documents folder) through a JSON string and onto Facebook?
I want to mimic the action of a user going to their Facebook page, clicking into the textfield for their newsfeed, uploading an image by clicking the "photos" icon and selecting an image from a local disk and uploading it. I would also like to add some text into the post optionally.
I’m just getting started with the Facebook API and it seems pretty tough right now, any help would be appreciated. Code examples appreciated.
You’ll need to use a third-party image host like YFrog or roll your own image host. Facebook requires that all media attachments (including photos) be hosted on the public web. Even though they cache the images themselves, the URL that you send to them has to have its own public URL. Many of the popular Twitter image hosts have simple REST APIs to achieve this.