Closed
Bug 834422
Opened 12 years ago
Closed 11 years ago
Add Open Graph Protocol (OGP) and Twitter Cards to most mozilla.org pages
Categories
(www.mozilla.org :: Pages & Content, enhancement, P4)
www.mozilla.org
Pages & Content
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jjensen, Assigned: kohei)
References
Details
(Whiteboard: [kb=1031498] )
Attachments
(1 file)
60.83 KB,
image/png
|
Details |
We should make use of Twitter cards, at least on the pages of our site that are more likely to be tweeted by our followers/community members.
https://dev.twitter.com/docs/cards
Comment 1•12 years ago
|
||
Hi John-
Would you be willing to investigate any privacy concerns surrounding Twitter cards before we move forward with this one?
Thx,
Jen
Flags: needinfo?(jjensen)
Priority: -- → P4
Reporter | ||
Comment 2•12 years ago
|
||
Jen,
I cannot think of any privacy implications at all. All it is some additional HTML markup on our public web pages.
Flags: needinfo?(jjensen)
Assignee | ||
Comment 3•11 years ago
|
||
OGP is also good for Facebook. http://ogp.me/
OS: Windows 8 → All
Hardware: x86_64 → All
Summary: Add Twitter cards to most mozilla.org pages → Add Open Graph Protocol Twitter Cards to most mozilla.org pages
Assignee | ||
Comment 4•11 years ago
|
||
To implement OGP and Twitter Cards, each page requires a unique, appropriate description. That has been discussed in Bug 850164.
Depends on: 850164
Comment 5•11 years ago
|
||
Michaela-
Is this a priority for your team?
Thx
Jen
Flags: needinfo?(mthayer)
Comment 6•11 years ago
|
||
Hi Jen,
"Twitter cards" actually refer to a number of things, including a few Twitter ad units and a new lead gen unit launched yesterday. I think you're referencing ways to share content through Twitter widgets on mozilla.org sites. Is that right?
A similar conversation is happening regarding Facebook (see bug https://bugzilla.mozilla.org/show_bug.cgi?id=791870) and the importance of social sharing after desktop download.
If I am understanding you correctly - yes - we should always do our best to incorporate social sharing into websites. Word of mouth marketing (the sharing of information between peers) is the most trusted form of advertising and this is a great way to generate that.
All this being said, Chris M., Stacy, and I have reached out to Facebook and Twitter about them allowing us to build custom share widgets because their current policies do not adhere to our privacy policy. I will keep you updated when we hear back with a definitive yes or no from them.
If I've misunderstood this chain, just let me know :). Might be giving you information that you didn't need to know!
Thanks :),
Michaela
Flags: needinfo?(mthayer)
Assignee | ||
Comment 7•11 years ago
|
||
MDN has already supported Twitter Cards. See the source of
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS
A relevant commit:
https://github.com/mozilla/kuma/commit/d8624d29c8bdb731a2cd5729f71eb0baecffb477
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
I'm going to resolve -> won't fix this for now, pending the outcome of next steps in the cmore/Stacy/Michaela conversation.
We can reopen if/when appropriate.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 10•11 years ago
|
||
We need canonical URL to implement those social features (later).
Depends on: 481550
Assignee | ||
Updated•11 years ago
|
Summary: Add Open Graph Protocol Twitter Cards to most mozilla.org pages → Add Open Graph Protocol (OGP) and Twitter Cards to most mozilla.org pages
Assignee | ||
Comment 12•11 years ago
|
||
I think this is still valid. OGP + Twitter Card is an extra markup to expose better title, description, image, etc. to major social sites. Some Mozilla properties, including MDN, Mozilla Hacks and The Mozilla Blog, have already supported OGP, and MDN also supports Twitter Cards as I mentioned in my comment 7.
Custom share widget, which involves user privacy, is different stuff. It has been discussed in Bug 725759.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Comment 13•11 years ago
|
||
Currently, only these pages support OGP:
http://www.mozilla.org/en-US/firefox/partners/
http://www.mozilla.org/en-US/firefox/sms/
http://www.mozilla.org/en-US/contribute/
Comment 14•11 years ago
|
||
Hi Jen and Team,
All sounds good to me. It would be great to get this up and running. However, in terms of priority from my team's perspective, getting the Firefox OS landing page ready to go is at the top of our list. (All things Firefox OS taking priority on my plate.) Once this can be prioritized (not sure what your workload is looking like), ping me and let me know what you need from me.
Thanks,
Michaela
Assignee | ||
Comment 15•11 years ago
|
||
I'll implement this soon, so people can share the Firefox OS landing page with the appropriate meta data. I have already written code to implement canonical URLs:
https://github.com/kyoshino/bedrock/commit/f25df0c11a178b855cfb80f89a4e89549b524602
Though the description of the page should be written by a copywriter, the implementation of the template is easy.
Assignee: nobody → kohei.yoshino.bugs
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
+1 to the canonical tags and the OG/twitter cards. I've been wanting us to do this for a *long* time, but there were bigger bedrock/php issues to work about.
Nice job, Kohei!
Updated•11 years ago
|
Whiteboard: [kb=1031498]
Assignee | ||
Updated•11 years ago
|
Comment 18•11 years ago
|
||
Kohei, what are next steps here? Looks like you still need to submit a PR.
Assignee | ||
Comment 19•11 years ago
|
||
I'm writing a test for Bug 903886. Once the backend code is implemented, we can add the frontend assets easily.
Assignee | ||
Comment 20•11 years ago
|
||
My current WIP is here, but I'm likely running into Jinja's bug or something. I think the patch was working before. Still investigating.
https://github.com/kyoshino/bedrock/commit/61015e9
Comment 22•11 years ago
|
||
Kohei: any update on this bug?
Assignee | ||
Comment 23•11 years ago
|
||
Sorry for the delay. I just send a pull request: https://github.com/mozilla/bedrock/pull/1260
Assignee | ||
Comment 24•11 years ago
|
||
My PR has been merged to master.
https://www-dev.allizom.org/en-US/
https://www-dev.allizom.org/en-US/firefox/new/
and everywhere on Bedrock!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 25•11 years ago
|
||
Hmm wait, Facebook says there's an error:
https://developers.facebook.com/tools/debug/og/object?q=http://www.mozilla.org/en-US/
> Object Invalid Value
> Object at URL 'http://www.mozilla.org/en-US/' of type 'website' is invalid
> because the given value '//mozorg.cdn.mozilla.net/media/img/mozorg/mozilla-256.jpg'
> for property 'og:image:url' could not be parsed as type 'url'.
Will fix it :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 26•11 years ago
|
||
(In reply to Kohei Yoshino [:kohei] from comment #25)
> Hmm wait, Facebook says there's an error:
>
> https://developers.facebook.com/tools/debug/og/object?q=http://www.mozilla.
> org/en-US/
>
> > Object Invalid Value
> > Object at URL 'http://www.mozilla.org/en-US/' of type 'website' is invalid
> > because the given value '//mozorg.cdn.mozilla.net/media/img/mozorg/mozilla-256.jpg'
> > for property 'og:image:url' could not be parsed as type 'url'.
>
> Will fix it :(
probably doesn't like the protocol relative URL. Are you going to do http or https?
Assignee | ||
Comment 27•11 years ago
|
||
(In reply to Chris More [:cmore] from comment #26)
> probably doesn't like the protocol relative URL. Are you going to do http or
> https?
Sent a new PR to add an option to media() to include a protocol:
https://github.com/mozilla/bedrock/pull/1299
If a visitor uses HTTPS, the function should output https:// accordingly.
Assignee | ||
Comment 28•11 years ago
|
||
Replacing // with https:// might be the simplest solution here. Updated the pull request.
Comment 29•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/747ca8ebb479f16ce53d78cb8ed9bd1823aad75f
Bug 834422, og:image should include a protocol
https://github.com/mozilla/bedrock/commit/ec0068945413f7d9160fe3f796b101e809155380
Merge pull request #1299 from kyoshino/bug-834422-meta-ogp-protocol
Bug 834422, og:image should include a protocol
Assignee | ||
Comment 30•11 years ago
|
||
Fixed on prod.
https://developers.facebook.com/tools/debug/og/object?q=http://www.mozilla.org/en-US/
https://developers.facebook.com/tools/debug/og/object?q=http://www.mozilla.org/en-US/firefox/new/
There's still a waring about fb:page_id. I'll update the bug if I find something.
Assignee | ||
Updated•11 years ago
|
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 32•11 years ago
|
||
Looks like the og:image is included in custom search results:
http://www.google.com/cse?cx=002443141534113389537%3Aysdmevkkknw&q=Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•