I’ve read the documentation here.
I have an action, “cook”, which is applied to an object “recipe”. I want to allow the user to post a photo of their cooking when they perform the action.
I would like to have the photo hosted on Facebook. Is there any way to post the actual image data as part of the request, rather than posting a URL to the user generated photo?
The docs say
The photo used will NOT be taken from the object’s meta data og:image tag. Instead, it is passed with the POST
and
The photo will be uploaded and placed in a Facebook photo album titled after the “App Display Name” for that app
but they also mention that the image[0][url] property is required.
The context is an iOS app: the user takes a photo on the device and wishes to post it to Facebook. To get a URL to the image, I’d obviously have to do an upload to some web hosting somewhere as a separate step, which would be harder to code and would require some hosting.
You’ll have to upload the photo first to some place where it’s available over the web via HTTP, and then give that URL while posting your action.