exhibits icon indicating copy to clipboard operation
exhibits copied to clipboard

Create a share function for social media

Open caaster opened this issue 4 years ago • 2 comments

From: "Angana Chatterji" [email protected] (creator of: https://exhibits.stanford.edu/conflict-sasia) It would be very nice to have a share function for e-mail and social media. Is that something you would kindly consider? Thank you so much! My best regards, Angana

caaster avatar Mar 30 '20 21:03 caaster

@caaster Need to know which social media platforms to target.

corylown avatar Jul 24 '24 15:07 corylown

Social media platforms to target, in order of preference:

  1. Facebook
  2. Instagram
  3. Linkedin

To be clear, we want all 3, but if if there isn't enough time to configure for all 3, that is why they are listed in order of preference.

caaster avatar Jul 24 '24 21:07 caaster

We think we can supply opengraph information on the page so that if someone shares an exhibit link it will form a nicer shared view of the item/page on the platform. Opengraph might not be supported by all the platforms, but there may be other ways to supply info for them we should explore.

corylown avatar Oct 18 '24 18:10 corylown

It looks like opengraph information is already supplied. https://github.com/projectblacklight/spotlight/blob/d167c89dd724c00018d8f3fc57c79280f4c5b1d7/app/views/layouts/spotlight/base.html.erb#L20-L21.

Where is this share going to go? Should be mirror what we have in earthworks? Should it be a dropdown?

Image

dnoneill avatar Nov 01 '24 19:11 dnoneill

@dnoneill I do see some opengraph meta tags on exhibits item pages. I think the thing to do is to check which opengraph fields twitter, facebook and linkedin will use if supplied and verify we're including all the information we could. All I'm seeing in exhibits is og:site_name, og:title, og:image -- maybe there are additional tags we can configure?

corylown avatar Nov 01 '24 20:11 corylown

Sorry I wasn't clear. The pages have specialty opengraph tags as well that are configurable if we want to update for our version. https://github.com/projectblacklight/spotlight/blob/d167c89dd724c00018d8f3fc57c79280f4c5b1d7/app/helpers/spotlight/meta_helper.rb#L44-L53

dnoneill avatar Nov 01 '24 21:11 dnoneill