thriveweb / photoswipe-masonry-v2

PhotoSwipe Masonry takes advantage of the built in gallery features of WordPress. The gallery is built using PhotoSwipe from Dmitry Semenov.
http://thriveweb.com.au
23 stars 6 forks source link

Sharing to Twitter doesn't share correct image. #21

Open Jon007 opened 7 years ago

Jon007 commented 7 years ago

since there is a workaround submitted for Facebook to close #18 let's split out the Twitter sharing.

The Photoswipe sharing to Twitter will result in either:

The solution would be for the sharing links to include an additional featured image parameter on the shared Wordpress page link, and a php implementation to detect this parameter and override the featured image and ideally description, resulting in details for the current image appearing in: <meta name="twitter:image" <meta name="twitter:description" so sharing sites that read this information can detect the image that was actually shared.

This is tracked here as is a wordpress specific solution and cannot be fixed by the generic Photoswipe. For the moment it is proposed on #18 to hide the twitter sharing link as a temporary workaround.