Change XFMG social shared image size


I need someone to help me change Xenforo Media Gallery image size that will be shared to facebook or twitter.

At the moment it takes thumbnail and shares it to facebook. It will be small and will not be atractive to facebook users.