: 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
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?
More posts by @Samaraweera270
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.