Beginners Guide to Social Meta (Open Graph)

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

Facebook Settings

All in One SEO Pack Social Meta module – Facebook Settings

These settings are advanced settings specific to Facebook and are not necessary for many users.

Facebook Admin ID

You can use this field to enter your Facebook Admin ID here. You can enter multiple Facebook Admin IDs by separating them with a comma. You can look up your Facebook  ID using this tool http://findmyfbid.com/.  Note that this should be the ID of a person on Facebook, you cannot use the ID of a Facebook Page here.  Most errors occur when people use the ID from their Facebook Page instead of their Facebook profile.

Facebook App ID

Enter your Facebook App ID here. Information about how to get your Facebook App ID can be found at https://developers.facebook.com/docs/apps/register

Facebook Object Type

The Object Type (OG:Type) specifies what type of site you have – blog, website or article.  Set this according to what you specified under Settings > Reading > Front page displays as either Front page displays your latest posts (blog) or a static page (website).

Facebook has strict guidelines about the correct usage of the Object Type.  If you encounter errors when testing or sharing then check this setting.

Automatically Generate Article Tags

This setting will enable the automatic generation of Facebook Article Tags for any content that has an Object Type of Article.  Article Tags will be generated from Meta Keywords, Categories or Post Tags based on the three checkboxes that appear when this setting is enabled.

Enable Facebook Meta for

You can use this setting to enable Open Graph meta for any content types you have such as Pages, Posts and Custom Post Types.

Based on the check boxes you select here you will see new drop down fields where you can set the default Object Type for each content type. Facebook has strict guidelines about the correct usage of the Object Type.  If you encounter errors when testing or sharing then check this setting.

Show Facebook Publisher on Articles

By entering the URL for your Facebook Page here, you can link articles to your Facebook Page. This only works for content where the Object Type is set to Article.

Show Facebook Author on Articles

This option will use the Facebook profile URL entered in the Edit User screen as the Article:Author tag. This links articles authored by that user to their Facebook profile. This only works for content where the Object Type is set to Article.

Content Object Types

Here you can set the OG:Type for each type of content (Pages, Posts and Custom Post Types).  For example, if you have a Custom Post Type for products you can select the object type to Product.

Facebook has strict guidelines about the correct usage of the Object Type.  If you encounter errors when testing or sharing then check this setting.

Twitter Settings

All in One SEO Pack Social Meta module - Twitter Settings

Social Meta module – Twitter Settings

These settings are advanced settings specific to Twitter and are not necessary for many users.

Default Twitter Card

You can this option to set the default Twitter Card Type that will be used for all content. This setting can be overridden in the Social Settings tab on each page or post. You can find information on Twitter Card Types here.

Twitter Site

This is the Twitter username for the owner of the website.  For example, @semperfidev. You should include the @ symbol.  This is used as the Twitter:Site which may be displayed on a Twitter Card.

Show Twitter Author

This option will display or hide the Twitter field on the User Profile screen under Users.  The Twitter field on the Users Profile screen is used to set the Twitter username for the creator of the content authored by that user.  For example, @semperfidev. You should include the @ symbol.  This is used as the Twitter:Creator which may be displayed on a Twitter Card.

Twitter Domain

This is the domain name for your site.  For example, semperplugins.com. You should not include the http://.  This is used as the Twitter:Domain which may be displayed on a Twitter Card.

Testing your Open Graph meta

There is a set of testing tools provided by some of the social media networks that you can use to test and validate your social meta. Here is the current list:

Facebook Debugger – https://developers.facebook.com/tools/debug/

Twitter Card Validation Tool – https://cards-dev.twitter.com/validator

Pinterest Rich Pins Validator – https://developers.pinterest.com/tools/url-debugger/

Troubleshooting Open Graph meta

Here is a list of common issues and how to troubleshoot them:

1.  When I share a URL on social media the correct information does not appear

There are many causes for this.  The first thing to check is whether the correct Open Graph meta is being displayed in the source code of your page or post.  Navigate to the page or post and view the page source (instructions on how to do this depend on the browser you are using).  Search your source code for the og: meta tags.  Below is an example of how they will appear:

Example Open Graph meta output by All in One SEO Pack

Example Open Graph meta output by All in One SEO Pack

You will notice the line of comment text that says All in One SEO Pack and beneath that is the meta that our plugin outputs.  You can see the og: meta tags, article tags and twitter: tags.

Make sure you do not have other og: meta tags in your source code.  The Open Graph meta output by All in One SEO Pack should be the only Open Graph meta present.

Many other plugins and some themes also output Open Graph meta so make sure you check for this and disable any other Open Graph meta by consulting the documentation for the plugins and theme that may be outputting this.

Does the Open Graph meta displayed in the source code match what you set for this page or post?  Make sure you clear any caching if you have any performance plugins that perform caching or your hosting provider or other service provider is performing caching.

Test the page or post using the Facebook Debugger (https://developers.facebook.com/tools/debug/).  If you get any errors then review the description of the error and troubleshoot accordingly.

If the Open Graph meta in the source code matches what you set in All in One SEO Pack and there are no errors reported by Facebook or any of the other debugging tools then this is most likely a caching issue.

All of the social media networks crawl websites and index information about your content.  They typically cache this information for a period of time and they may or may not provide you with a way to force them to clear their cache.

For example, Facebook caches information for an unspecified period of time.  They provide a method by which you can force them to clear their cached information using the Facebook Debugger.  After entering your URL for your page or post and clicking the Debug button you will see a Fetch new scrape information button.  Click this to have them clear their cache and fetch the new Open Graph meta for that page or post.  You may have to do this a few times before the new Open Graph meta appears in the preview window further down the screen.

LinkedIn also caches information for approximately 7 days but unlike Facebook they do not provide a testing tool or a means to clear their cache.

2.  I use a plugin that automatically publishes my content to my social media networks but it doesn’t display the correct information

There are many plugins available that enable you to automatically publish content to social media networks.  Just because we output Open Graph meta does not necessarily mean that developers of these plugins will use our Open Graph meta.  Many plugins output their own Open Graph meta and some of these don’t provide you with fields where you can control the Open Graph meta.  We recommend using Jetpack.  The developers of Jetpack work closely with us to make sure that our plugins are compatible and that they use our Open Graph meta they also provide excellent support.

3.  I’m getting an object type error when I test my URL

Make sure you set the Object Type correctly for this page or post.  Remember that Facebook has strict guidelines about the correct usage of the Object Type.

4.  I’m getting an error related to my Facebook Admin ID

This should be the ID of a person on Facebook, you cannot use the ID of a Facebook Page here.  Most errors occur when people use the ID from their Facebook Page instead of their Facebook profile.  You can find your Facebook Profile Admin ID using this tool http://findmyfbid.com/. Note that this tool is not provided by Facebook and may not be correct.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar