I am in the process of making an app that uploads photos to Facebook and then optionally posts a link to the user's wall. I would like to know if it is possible to assign the same visibility permissions to the post as the photo or the photo album it is uploaded to. I am able to get the visibility permissions from the album fairly easily.
Is it possible to set the same permission to the wall post, and if so, how?
Clarification: I do not mean the client side permissions of the actual file. By permissions I mean the 'visibility' tag passed from the getAlbum(s) API. (i.e: Visibility: Everyone, Friends, Custom, etc)
That way, if the user sets an album to be only visible to his/her friends and they have elected to have a photo uploaded to that album that when the photo gets linked in their stream (wall) it has the same visibility settings as the album its located in.
Example: Joe creates a photo album on Facebook called "Summer Fun" that is only visible by his "Friends". Joe uses my app to upload a photo tho the "Summer Fun" album. I check the "Visibility" field of the album and see it is set to "Friends". Joe also wants a link to this photo posted to his wall, in which my app can easily do using the stream publish API. Due to his privacy setting of the "Summer Fun" album being set to "Friends" I would like my app to respect that setting when posting to the wall. Making the wall post only visible to the same group of people he calls his "Friends".
In other words, is it possible to set the group of people who can see a wall post programatically as if you were to hit the little 'Share' drop down on facebook.com and set it to 'Friends' only?
- Language: PHP5
- Using: Facebook's REST API, cURL, however open to alternatives if need be to get the end result I need.