If the post has been deleted from facebook, you'll see the Fatal error: Uncaught GraphMethodException: Unsupported get request.
error. What you can do is:
while($row = mysqli_fetch_array($get_content_db_info)){
try {
// your original while code
} catch ( Exception $e ) {
// error from facebook, post is likely to be deleted
if ( $ex->getMessage() === 'Unsupported get request.' ) {
// delete post from database
}
}
}
The try...catch statement will catch any errors, including Unsupported get request.
, where you can then delete the post from the database, without affecting the rest of the flow.