What is twitter:domain good for?
Asked Answered
C

2

17

I'm currently trying the Twitter Card Validator for my website.

I did not set twitter:domain, because the help text shows

RESTRICTED - twitter:domain will be automatically generated from your card's URL.

Not required

But I've just wondered if I should set it anyway.

What would be the effect when I set twitter:domain? To which value should I set it? Should I set it at all?

(I guess martin-thoma.com, but it might also be http://martin-thoma.com or martin-thoma.com/.)

Answers that don't cite a reliable source are note acceptable!

Cerda answered 7/1, 2014 at 7:26 Comment(0)
K
11

According to this, twitter:domain is used to display the text on the button "View on ...". The validator seems to agree. Once you enter it and update the card, it changes from "View on web" to "View on (value of twitter:domain)".

Kight answered 16/1, 2014 at 11:52 Comment(0)
T
20

The twitter:domain tag had since been omitted in Cards Markup Tag Reference and is no longer mentioned by validator.

It seems to have been de-facto deprecated and no longer used.

Thetic answered 15/9, 2015 at 12:45 Comment(0)
K
11

According to this, twitter:domain is used to display the text on the button "View on ...". The validator seems to agree. Once you enter it and update the card, it changes from "View on web" to "View on (value of twitter:domain)".

Kight answered 16/1, 2014 at 11:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.