Add support for twitter cards (full image viewer only)#4260
Add support for twitter cards (full image viewer only)#4260manics wants to merge 5 commits intoome:metadatafrom
Conversation
|
Does configuration need to be per |
|
Good point. I guess one option is with a key from |
Rename property as omero.web.sharing.twitter to provide a namespace for other sharing options.
|
The |
|
Ideally this would be testable without deploying it live to the IDR. |
|
Also added opengraph (facebook) support |
|
Interesting (unrelated) travis failure: Relaunched. |
|
Example config |
|
In theory the last line should set the name of the site shown in facebook, though it doesn't seem to. |
|
This is currently leading to: |
|
@joshmoore I think the last build you deployed was missing the last commit 7845fd6 which should've fixed that error. |
|
--rebased-to #4613 |
I've had this lurking around since January 2014. Given that we now have a public resource and Twitter no longer require manual approvals I thought it's time to resurrect it. See https://dev.twitter.com/cards/types/summary-large-image
The
titleanddescriptionfields are mandatory, I'm assuming there will always be a non-empty image name, description is set to the owner's name if empty.At risk of stating the obvious this can only be tested with a public image on an external server. Open an image in the full image viewer, copy the url into a tweet.