onestopkeron.blogg.se

Validator for social media meta
Validator for social media meta









validator for social media meta
  1. Validator for social media meta registration#
  2. Validator for social media meta series#

Subsequent query parameters are separated by “&” as will be seen shortly. Also, note how “?” designates the start of the first query parameter. Īs previously explained, the URL shared is necessarily percent-encoded. Here’s an example that shares the home page of CSS-Tricks on Facebook – go ahead, cut-and-paste into a browser to see the result. The only parameter available is “u”, which is used to specify the URL of the web page you want to share. In fact, with countless web sites using this method, I can’t imagine it would be deprecated anytime soon.

Validator for social media meta registration#

If you don’t have an App ID, the registration process is not onerous, but there’s no need to bother when an even simpler solution exists.įacebook’s original method of sharing web pages, without the required App ID, is no longer mentioned in any of their documentation, but it’s still supported. While there are four query parameters available, only two are required: the URL of the web page that you want to share and an App ID, which developers can obtain by registering at Facebook. Per their Developer’s Guide, Facebook specifies the following URL to submit GET requests when sharing a web page: Let’s look at a few of the more popular social media services and learn how we can share web pages through them. There are many resources that provide conversions ( Bing has one built into the search engine) and, as you will soon see, JavaScript can also handle the heavy lifting in this regard. Of course, there’s no need to memorize these hex codes. A space can be represented by “%20” or “+”. These are the reserved characters and their percent-encoded equivalents. These characters are subject to “ percent-encoding” – that is, they are represented in query parameters with a “%” followed by a two-digit hex code. Now, certain symbols in GET requests known as “reserved characters”, need to be encoded properly so as not to interfere with normal browser functions.

Validator for social media meta series#

Then, by appending a series of name/value pairs (query parameters like ?title=Title) to the end of this URL, you can specify the URL of the web page you want to share and, sometimes, additional information. clicking a link) to a URL provided by each social media service. When sharing web pages using links, you’re essentially submitting a GET request (i.e. And the best part is that it’s simple to do yourself.

validator for social media meta

To avoid all of that, though, you can create your own links to share web pages. But what about creating the links to let users share these web pages? Facebook, Twitter, and LinkedIn offer numerous ways to do this, some involving button generators and others that require external JavaScript. This past summer, I wrote The Essential Meta Tags for Social Media about how developers can prepare web pages to optimize their appearance when shared on social media.











Validator for social media meta