Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Replacing The Displayed URL When Sharing On Social Media The best way I can explain this question is with a real life example. Team Rock host their magazine Classic Rock as a subdomain to

@Samaraweera270

Posted in: #MetaTags #SocialMedia

The best way I can explain this question is with a real life example.

Team Rock host their magazine Classic Rock as a subdomain to the comapny website, i.e. classicrock.teamrock.com, which is exactly what I want to do with my website and associated blogs.

The problem is that when you share a Classic Rock post on Facebook, it shows the Image/Title/Description for the selected article, but it displays TEAMROCK.COM, as shown below:



Is there any way of replacing the primary domain name with the name of the blog? And if so, does this work with ALL social network sites?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

What is being used is the OpenGraph protocol which was brought into being by Facebook to aid in passing rich content from a site being shared to the Facebook servers and to make webmasters have more control over how their pages are shared and displayed.

In this particular case the og:url meta is being used in the form of <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />. Even though this is being served from the sub domain Facebook see's the og:url tag and changes the URL being shown to the end user and the user being redirected to on click.

You can find more about the OpenGraph protocol from ogp.me.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme