By default, MyListing uses a listing’s logo social share image, and this code snippet tells MyListing to pull the first gallery image instead.
<?php
add_filter( 'mylistinglistingshareimage', function( $image, $listing ) {
if ( $gallery = $listing->get_field('gallery') ) {
return $gallery[0];
}
return $image;
}, 99, 2 );