How to set custom Open Graph tags

Last update: 11 July, 2017

Yoast SEO includes the option to set custom Facebook images, titles and descriptions on a page by page basis after you have enabled OpenGraph meta data.

Table of Contents

Homepage

If you have a static homepage, you will follow the same steps as you would for any other page on your site. Otherwise, you can set a custom title and description with these steps.

1
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
2
The ‘SEO’ settings will expand providing you additional options. If you don't see the 'Social' setting in your 'SEO' menu, please enable your advanced settings first.

Yoast SEO > Dashboard (Advanced disabled)

Menu with advanced settings disabled
Enable advanced features

3
Click on 'Social'.
Yoast SEO > Social
4
Click on the Facebook tab.
5
Enter a custom image, title and description under Frontpage settings.Yoast SEO > Social > Facebook (tab) : Frontpage
6
Click 'Save Changes'.

Posts, Pages and other Taxonomies

The social tab of the meta box allows you to set a custom image, title and description on each post, page or taxonomy.

Yoast SEO Metabox : Social Tab - Facebook

Preview

One of the Yoast SEO for WordPress Premium features is the ability to see what your post will look like when sharing on Facebook.

Yoast SEO Metabox : Social Tab - Facebook preview

Available Developer Filters

This guide below is written for advanced users and developers. Looking for a web developer to customize our plugin? We highly recommend checking out Code Poet as they have a great list of available freelance WordPress developers.

There are a number of filters documented in the plugin code for developers to programatically change OpenGraph output. Below are some examples.

Was this article helpful? ·