When publishing a post on the user’s wall (via the graph API) I know how to change the privacy settings using the “privacy” field, and it works fine.
However, how do I do the same on a photo published into an album? Photos in albums also have privacy settings (you can set them manually so I guess you can set them via the API, or can’t you?). The privacy field for the Photo object does not exist. I thought it may be undocumented so I tried it, but it doesn’t work.
So how do I change the privacy settings for a photo? (ideally at the very moment of publishing it)
thanks
m.
From what I’ve seen you can’t set a Photo’s privacy directly when publishing (the API seems to only take “source” and “message” values).
However, if you create a new Album and pass in “visible” with a value of “everyone” then the album is “public”.
If you then upload a Photo into that album then the Photo will also be “public”.
To my knowledge the “visible” setting is undocumented… I found it in the FQL table: http://developers.facebook.com/docs/reference/fql/album/
You would think it accepted “privacy” but in my experience it does not. http://developers.facebook.com/docs/reference/api/album/