Steph W. from SEOPressor

👋 Hey there! Would you like to try out this New AI-Powered App that'll...

...help you check your website and tell you exactly how to rank higher?

Yes, Tell Me More
Early Bird Special Introducing LinkVector, your #1 tool for precise internal linking! Save up to $63.75 for limited time.

Feel like you are wasting time on internal links?
Automate it with LinkVector.

  • Interlink all your pages automatically
  • Fix 18 issues like orphan pages in one click
  • Insert relevant internal links and optimized anchor text
  • See how all your pages are connected
  • Monitor your website’s link health


Join 50,000+ fellow SEO marketers!
Get SEOPressor latest insights straight to your inbox.
Enter your email address below:


score %

SEO Score

SEOPressor SEO Score

Found us from search engine?

We rank high, you can too.

SEOPressor helps you to optimize your on-page SEO for higher & improved search ranking.

Get Your SEO Score Now

Guide to Facebook Open Graph and Twitter Card

By winniewong on January 12, 2021

facebook opengraph and twitter card

Ever shared a post from your website to Facebook only to find blocky chunks of text and blurry images? We have all been there as digital marketers and social SEO experts.

It happens when sharing content from sites to social media platforms. It also happens when interlinking content between different social media channels.

The quality degradation issues of shared posts are not exclusive to Facebook. It happens on Twitter and other social media platforms too. It happens because you, the publisher, have not defined the content to be displayed and how it should be displayed when you are sharing a link.

You might have the most beautiful content, including optimized web pages and inspiring pictures. However, if quality flies out of the window the moment you share to your social media, all your social SEO efforts go to waste. No follower might want to re-share the resultant invisible or unattractive post with their friends.

The answer to this problem is the Facebook Open Graph and Twitter Card.

What is the Facebook Open Graph?

The Open Graph Meta tags introduced by Facebook in 2010 define how your content gets to appear when sharing from websites and other social media sites.

Using Open Graph allows your transferred content to become a rich graph, or in other words, retain superior display qualities as other direct Facebook posts.

As a marketer, skilling yourself into how Open Graph works can help you improve the shareability of your content. Users expect crisp images and clear text, and this can be attainable from the correct use of Open Graph. The result from this social SEO endeavor would be more shares and increased traffic.

og: title

This meta-tag guides on how to outline your blog’s title when sharing to Facebook. The og: title works the same way as the HTML tag in your code that tells search engine crawlers what your content is about.

Your og: title needs to be bold and compelling. Even though there are no set limitations on the number of characters, an average of 60 characters works best for an eye-catching display.


<Meta property=“og: title” content=“Leveraging Open Graph for Increased Content Shares” />

og: url

This Open Graph meta tag is the URL of your blog post, page or image. However, the URL is never shown in the social graph; only the domain appears. This tag is essential, especially when you have several URLs for the same content. It helps to define where the traffic from the post will go to for an easily measurable social SEO.


Example: <meta property=”og: url” content=”http://www.yourdomain.com/leveraging-open-graph-for-Increased-content-shares/” />

og: description

The description tag tells your social media audience about your page. It is how users get to gauge the relevance of your content versus the information they seek. What you write on this tag shows up below your post’s link on Facebook.


<meta property=“og: description” content= “Need more traffic from your social media posts? Here are the top 6 ways to earn more shares with Open Graph.”/>

og: type

The og: type describes your content type e.g. blog post, game,  book, movie, and so forth.

Example: <meta property=”og:type” content=”website” />

og: image

This tag specifies the image URL. Images need to be clear for your post to stand out. Without setting this description, Facebook might show an unwanted part of your site as the image,  or over-compress your image.

Remember that for an optimal image display on your shared post, the resolution has to be 1200 pixels x 627 pixels. Be sure however to keep the image size below 5 MB.  The image tag on Open Graph also allows for the use of a different image; it doesn’t have to be what you have on your page.


<meta property=”og: image” content=”http://www.yourdomain.com/image-name.jpg” />

What is Twitter Card?

Twitter cards are Twitter’s content sharing and publishing protocols that work the same way as Facebook’s Open Graph. In this case, however, your content descriptions will not be visible to users. You can use Twitter cards to publish more information past the 280 character limit. The cards similarly help to improve how your website, images and other content stand out when shared from other sites.

twitter: card

This Meta tag describes what your content is. You have the option of selecting image, video or web content. The description tag helps to achieve an eye-catching summary description of your web content on twitter, along with a thumbnail and title.


<meta name=”twitter: title” content=”Your Title” />

twitter: url

Setting up your URL description ensures that traffic from your Twitter post’s clicks got one place.


<meta name=”twitter: url” content=”http://www.yourwebsite.com/blogpost-title/”>

twitter: title

The title tag, like in Open Graph needs to describe what your content is about, succinctly. You will have up to 70 characters for that, and an opportunity to use the right keywords to capture your audience’s attention.

Example: <meta name=”twitter: title” content=”interesting title here”>

App cards

These are used when sharing mobile app advertisements. The cards show a snippet of your app’s icon along with price and content rating. The description should be 200 characters and the image at least 800 x 320 pixels.


<meta name=”twitter: app: name: googleplay” content=”your googleplay app name”>

twitter: image

Tweets with images get more clicks and retweets.  The image twitter card enables you to define the image you need to appear alongside your twitter post and how it should appear. Your image size shouldn’t exceed 1 MB, and the resolution should be between 60px by 60px and 120px by 120px.


meta name=”twitter: image” content=”https://where-your-image-is-hosted/name.jpg” />

Why are the markups important?

  • Both Open  Graph and Twitter cards are structured data that allow you to take control over  how your content is displayed
  • They help to attain high quality posts on Facebook and Twitter for increased visibility
  • They increase likeability and shareability of your content
  • They make  your content more clickable, and therefore improve traffic and conversions

How to Create the Markup Manually?

Now that you understand how social media tags work let’s put them into action on your WordPress Website and accelerate the ROI potential from your social SEO. When creating the markups manually, all of the code should go to the functions.php file of your website’s theme.

Step 1: Open your functions. php file and on the language attributes filter add a function that informs third party applications that there are more tags than HTML tags in your content.

Step 2: Add Open Graph’s metadata

Scroll to the bottom of your functions.php file and copy-paste the below code. This code is a conditional check that confirms that you are on a post page and that Open Graphs or Twitter Cards tags will be effected on individual post pages.

Step 3: Add the Open Graph or Twitter Cards tags one by one in the head section of your header. php  page

Use your blog post’s title as the og: title and the excerpt for your og: description and page’s URL for permalink. In this example, we have defined our content type as an article, and there is an image source, use a fallback thumbnail if there is no post image.

Step 4: Add the Facebook ‘like’ button code in the body section of your web page (<body>.<body>) so Facebook users can easily share your content.

After you have added all these Meta tags, your post pages will start to run a primary function of Open Graph or Twitter Card. The code can be modified with more advanced tags depending on your post types.

Creating the Markup with SEOPressor Connect

Alternatively, you can easily create the markup with our plugin. All you need to do is fill up the fields in the ‘Social’ section.

SEOPressor Connect’s Social Markup 

You can find a more detailed guide here: Setting Up Social SEO


Open Graph and Twitter Card guarantee that whenever someone shares your web content on their social media status, your content will show up neatly, with a link, a title, an image, and a description.

They are critical social SEO tools to implement for increased traffic and conversion.

Updated: 19 July 2024


About Winnie

Winnie is an aspiring copywriter & internet marketer in the vast world of digital marketing. She's as curious as she can be; constantly hunting for answers to her questions, never saying no to new experiences. When she's not spending her time typing up a storm, she is at home keeping up with her never-ending movie marathon & books.

Related Articles

AI Press Release Generator Showdown: Unveiling the Top 8 ContendersTop 5 Press Release Distribution Services in 2023Guide to Search Intent: Critical Part Of SEO
Loading Disqus Comments ...

Struggling with internal linking?

Wish you could...

Automate internal linking

Use optimized anchor text

Fix 18 issues like orphan pages

Get link reporting and analytics

Get LinkVector

Backlinks are so backward.

This linking strategy is the future 😎

Rank High With This Link Strategy

Precise, Simplified, Fast Internal Linking.