0

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.

Kara
  • 6,115
  • 16
  • 50
  • 57

1 Answers1

0

You can move the images you have already uploaded,

otherwise, mark the rows you've already uploaded to facebook and exclude these rows from your select query.