• 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 978 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021

 

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, January 18, 2021, https://thecustomizewindows.com/2013/06/showing-open-graph-protocol-og-image-og-description-properly/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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