What is twitter:domain good for?

8.7k views Asked by At

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!

2

There are 2 answers

0
mrjink On BEST ANSWER

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)".

0
Rarst On

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.