Using Facebook Graph API, we can programmatically post a picture to any album of the user. We can use this to create images and post them on behalf of the user.
You should have the album ID to which you want to post the picture. Additionally, you must have created
index.php as explained in the beginning of this chapter. Also, the application needs to have the publish_stream permission for posting the picture.
We can upload a picture to an album by following these steps:
action_postpic.php. Add the code given below to this file:
realpath()function to return ...