I am creating an application that uploads photos to Facebook and then adds a link to the user's wall. I would like to know if the same visibility permissions can be assigned for publication as a photograph or a photo album onto which it is uploaded. I easily get visibility permissions from the album.
Is it possible to install the same resolution on a wall, and if so, how?
Clarification: I do not mean client-side permissions for the actual file. By permissions, I mean the "visibility" tag passed from the getAlbum (s) API. (i.e. Visibility: everyone, friends, custom, etc.)
Thus, if the user sets an album that will be displayed only for his friends, and they decide to take a photo uploaded to this album, when connecting the photo in the stream (wall), it has the same visibility as the album in which it is located.
Example: Joe creates a Facebook photo album called Summer Fun, which is visible only to his Friends. Joe uses my app to upload photos to the Summer Fun album. I check the Visibility field of the album and see that it is set to Friends. Joe also wants the link to this photo to be posted on his wall, in which my application can easily make using the stream publishing API. Due to the privacy setting of the Summer Fun album set to Friends, I would like my app to respect this setting when posting to the wall. Creating a wall post is visible only to the same group of people that he calls his "friends."
In other words, is it possible to ask a group of people who can see the wall post programmatically, as if you were in the small "Share" folder on facebook.com and set it only to "Friends"?
- Language: PHP5
- Usage: Facebook REST API, cURL, however open to alternatives, if necessary, to get the final result I need.
source share