I wrote a php script that gets random articles from my DB and display it on my Facebook page using the graph API, I was about to do the same with the images that I want to post but I noticed that it won't be efficient because getting the images in random will mean that the same image might be uploaded more than once in more than one occasion
The efficient way would be uploading all the images to a Facebook album instead of the DB and then use the graph API to post the images from the album the problem now is that I can't figure how to do so.