• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Showing Open Graph Protocol og image, og description Properly

By Abhishek Ghosh June 23, 2013 5:20 am Updated on October 17, 2014

Showing Open Graph Protocol og image, og description Properly

Advertisement

Showing Open Graph Protocol og image, og description properly can be a challenge – either proper post specific og image is not shown or description is chopped or sometimes overflown ! This is very common issues and you will find them even in standard theme developers’ own blogs’ output because of faulty logic in Plugin’s function. There are various reasons why showing Open Graph Protocol og image, og description properly can be a challenge – it can be for a PHP, Apache configuration, can be for using non Apache server or can be simply for change in WordPress function reference. For this guide on showing Open Graph Protocol og image, we are taking that you are using Genesis 2.0 Beta or higher and WordPress Facebook Open Graph Protocol Plugin. The function references are not specific to these Themes and Plugins, at least we have tried to make it universal, but it is fact that; it is not possible to code or correct all the kind of same plugins and themes.

 

Commonly Faced Issues With Showing Open Graph Protocol og image, og description Properly

 

Case 1

If you visit Bryan’s Blog right now (Copyblogger.com) and open any blog webpage, you will notice the chopping :

Advertisement

---

 

Showing Open Graph Protocol og image, og description Properly

 

“expe” is not expected. He is using Genesis 2.0 Plus WordPress Facebook Open Graph Protocol Plugin. It is enough good plugin.

 

Case 2

 

Image is not shown properly by Facebook or Twitter, live example can be produced by you if follow our guide – Twitter Card Embed Options in WordPress. Twitter or WordPress is not caring what actually you want to show.

 

Fixing and Showing Open Graph Protocol og image, og description Properly

 

For case 1, you will need to fix the Plugin’s main file in the way I have done. The source code of the modification is available on my GitHub repository.

You can see the diff here. Basically, it is not the Plugin Author’s mistake or kind of that. The change I guess was made based on people’s feedback. You can download the zip and use it as plugin itself, there is no other changes made.

 

For case 2, the wish is :

 

  1. Showing post image as thumbnail in Twitter, Facebook
  2. Showing Fallback image for home or other Categories in predefined way
  3. Through point 2, avoiding multiple og images and preventing the error output as no default image set.

 

All the function are normally present, at least logically; but for some it does not work or add double og image. Facebook, Twitter prints out the blog’s main set default image if it gets two options. That is bad. I have modified the code more for me :
So, if I do not use a default image from plugin’s control panel in WordPress side, the normal function of the plugin was to print the error message, but it actually will output the default image. It is done to make the thing easy to edit by everyone.
Now, if you want to add category specific ogg image, obviously use the normal WordPress functions, if the category is Cloud, a white thing looking like that will show, else for category named ‘download’ it will show another thing, else will show Lotus icon. Easily customizable.

Obviously, what already published, can not be modified back. You can comment out the echo functions to print Plugin name an version to reduce a small CPU consumption. It is good to comment out the unnecessary link to other website in outputs in these latest Penguin days. April 2013 breaking changes has made some changes in Facebook, you can read them here :

https://developers.facebook.com/blog/post/2013/04/03/platform-updates--operation-developer-love/

Abhishek-Ghosh Tagged With paperuri:(febbb1582d93b114ab1602927e2c5eac)

This Article Has Been Shared 881 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Showing Open Graph Protocol og image, og description Properly

  • YouTube Tips : Embed Playlist, YouTube’s audio, YouTube HTML5 Player

    Here are YouTube Tips to Embed YouTube Playlist, YouTube’s audio, YouTube HTML5 Player in any webpage or WordPress page or posts. Let us see how we can do them.

  • Object Meta Tags for Facebook Open Graph Protocol

    Object Meta Tags for Facebook Open Graph Protocol are represented by HTML markup on a particular webpage which uniquely defines each object. Here are standards. There are three parts – Creating Objects, Reading Objects and Updating Objects. We can implement Open Graph Object Meta Tags with widely known Pointers.   Object Meta Tags for Facebook […]

  • Podcast and WordPress : Tips

    Podcast and WordPress can make the older posts more lively again. A small introduction Podcast can increase the conversion. Here is a detailed guide.

  • Rich Pins Pinterest for WordPress : Easy Tips & Tricks

    Rich Pins has been introduced by Pinterest. Here are the easy ways how you can use for WordPress to validate your rich pins and apply to get them on Pinterest.

  • Post Specific Widget with Semantic Markup for WordPress

    Post specific widget with Semantic Markup for WordPress is a kind of template Plugin for more flexibility. You can create infobox like Wikipedia.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023
  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Showing Open Graph Protocol og image, og description Properly," in The Customize Windows, June 23, 2013, February 6, 2023, https://thecustomizewindows.com/2013/06/showing-open-graph-protocol-og-image-og-description-properly/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT