Programming Labs

Use these links to advertise new YouTube videos. The first 2 hours are the most important.

Optimizing Landing Pages with Twitter Cards and OG tags

For landing pages and any web page that you plan on posting on social media, you should use OG and Twitter Card meta tags so the post looks as good as possible.

Example Twitter Card tags

Twitter will use og: codes if twitter: codes are missing, but they will not look as good.

twitter:image - a URL to a unique image representing the content of the page. You should not use a generic image such as your website logo, author photo, or other image that spans multiple pages. Ideal size is: 1200px X 628px. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.

Example Open Graph Meta tags

Open Graph meta tags are snippets of code that control how URLs are displayed when shared on social media.

They’re part of Facebook’s Open Graph protocol and are also used by other social media sites, including LinkedIn and Twitter (if Twitter Cards are absent).