Sharing photo on FaceBook in some cases working not correctly in case if in the gallery exists files with IMG_1 and IMG_10 name patterns.
In this case if visitor will try to share IMG_1 the facebook is picking up IMG_10
X3 Photo Gallery Support Forums