Closed
Bug 1014902
Opened 11 years ago
Closed 6 years ago
Add basic twitter summary card info for buglinks
Categories
(bugzilla.mozilla.org :: User Interface, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: johnath, Unassigned)
References
()
Details
People tweet buglinks, and often those people are hoping to get their audience to engage with the bug, to wit:
https://twitter.com/StartMozilla/status/469573455319695361
A thing that twitter does to encourage people to engage with links is "twitter cards" which present something better than just a url, to wit:
https://dev.twitter.com/docs/cards/types/summary-card
That API doesn't require any privilege or complex relationship with twitter, just sending 3 <meta> tags in show_bug.cgi. Specifically:
1. <meta name="twitter:card" content="summary">
Tell twitter we want the basic "Summary" card.
2. <meta name="twitter:title" content="Bug Summary Goes Here">
I assume that's the most sensible thing to use as the title. Maybe "123456 - Bug Summary Goes Here"?
3. <meta name="twitter:description" content="Comment 0, or if there's a comment link, that comment?">
This field gets truncated to 200 characters
It's possible this makes sense upstream, or as a Bugzilla extension, but right now I'd be fine to just try it on our local install. Has this already been discussed? Is it harder than it seems, or a bad idea?
according to https://dev.twitter.com/docs/cards/getting-started#open-graph twitter supports open-graph, so our existing open-graph tags should already be working:
<meta property="og:type" content="website">
<meta property="og:image" content="https://bugzilla.mozilla.org/extensions/OpenGraph/web/bugzilla.png">
<meta property="og:title" content="1014902 – Add basic twitter summary card info for buglinks">
<meta property="og:url" content="https://bugzilla.mozilla.org/show_bug.cgi?id=1014902">
this works well in facebook and yammer.
i'd prefer to see og fixed to work with twitter than add new twitter-specific tags.
(my pre-coffee guess is the missing prefix attribute on the <html> element).
| Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Byron Jones ‹:glob› from comment #1)
> according to https://dev.twitter.com/docs/cards/getting-started#open-graph
> twitter supports open-graph, so our existing open-graph tags should already
> be working:
Oh ho! Nice!
> i'd prefer to see og fixed to work with twitter than add new
> twitter-specific tags.
>
> (my pre-coffee guess is the missing prefix attribute on the <html> element).
Indeed. That would be just fine, too, clearly, and an even easier fix, one presumes?
from https://dev.twitter.com/docs/cards/validation/validator:
> Card previews are not supported in this browser. Please use a WebKit-based browser.
10 points from gryffindor
looks like all we need to do is insert the
<meta name="twitter:card" content="summary">
element to get basic support.
however determining what populate the twitter:description element with may be problematic, as it's a mandatory field and we don't really have an overall description for bugs.
maybe we should use the user-story field, or leave it empty if that's missing.
some people write excellent descriptions in their initial comment, however this is unfortunately not that common :(
Comment 5•11 years ago
|
||
I think we know some people at Twitter; I'll tap on the glass there tomorrow, see if we can get that fixed.
Updated•6 years ago
|
Type: defect → enhancement
Comment 6•6 years ago
|
||
We already have this.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•