Discussion on Facebook OpenGraph Module for OpenCart (vQmod)

GKauten

GKauten supports this item

Supported

9 comments found.

Hi there. This mod works like a charm, however I have one problem:

If my Description has quotes, they do not get escaped. Can you explain how to edit this line:

<meta property=”og:description” content=”’.trim(preg_replace(”/\r\n+|\r+|\n+|\t+/i”, ” ”, strip_tags(html_entity_decode($product_info[‘description’], ENT_QUOTES, ‘UTF-8’)))).’”/>

...in order to have it escape any double quotes encountered in the product’s description?

Thank you.

That worked perfectly, but I do have one final question. My url structure is actually different than what is being place into the og:url property. Is there a way to have it simply place the value that exists in the address bar?

For example, using the previous mentioned link, http://fitmarkbags.com/fitness-bags/sports-backpacks/class-platinum-backpack

...view source, and you’ll see the og:url as http://fitmarkbags.com/class-platinum-backpack

We use rewrites for most of our products, so if the value could be retrieved from the address bar (current page url) all would be perfect. Any solution?

Thanks, John

At this time I do not have an immediate solution available. The plugin assumes the use of the canonical URL. I will play around with it over the next day or two and see if I can put together a working solution for you.

Thank you. No worries about solving that, I was able to correct the canonical path, so this is no longer necessary for me. However, the og:image property is returning my largest product image. Is there a way to correct <meta property=”og:image” content=”’.HTTP_IMAGE.$product_info[‘image’].’”/> to reveal the product’s primary thumbnail instead? This should wrap up this mod for me:)

Is it compatible with Opencart 1.5.5.1?

It is compatible with 1.5.5.1 but does require one minor change to support the change to product images. We have not yet uploaded this new document to CodeCanyon but would be happy to supply it after purchase.

Done. :) Please send me the instructions.

Please contact us through the author profile page by clicking on our Screen name in the comments above, so that we may in turn email you the new file directly.

My information pages seem couldn’t display the image. It can’t return any images in the pages. Any idea why?

Here one of the link: http://figos.my/shipping-delivery-information

Opencart version 1.5.5.1.

For the link provided, Facebook is showing a picture of the “shipping box” without an issue when I enter it into my Facebook status box.

Running that link through the OpenGraph Object Debugger, there is one warning about image size, but it still located the image specified on that page.

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ffigos.my%2Fshipping-delivery-information

kind of weird as now it works. do you know if facebook takes some time for any changes to take effect? In fact I cleared the server’s and browser’s caches earlier but it wasn’t work.

Facebook does maintain a cache of any websites that are shared through their system. You can use the Facebook Debugger tool to help clear that cache to the most recent data by entering the URL on the link below:

https://developers.facebook.com/tools/debug

While they do not explicitly say this will clear the cache for your site, several other developers have promoted this as the most effective way to do so. You may need to run the URL through once or twice before you will begin to see the updated content within Facebook.

Wonderful extension and truly World-Class support! One of the few developers that really just wants to make sure their customers are happy! Was incredibly helpful and responsive and sent code modifications real time and fix a very minor error due to a my VERY custom theme. Thank you so much for your support Geoff, look forward to more great code!

Hi, Your extension works perfectly. I have a question about the OBM script. I need to load dynamic og:image for the article. Can you help me with this? I would like to load the featured image(the article thumbnail visualized in the category view). If this is not possible as the image is not on the current page(it is thumbnail in the category) I can try to load it in the article. I’m not professional so I’ll be thankful if you explain me the solution with details and example.

Cheers!

Hi Tritakov,

We’ll look into this over the weekend and get back to you as soon as possible. If we understand correctly, you are wanting to be able to set a featured image for the image, which is what appears on the blog listing (or category) page, and have that be the og:image value when viewing the individual article, correct?

Yes, this is exactly what I need. Thank you!

Hi Tritakov,

We have a solution in place and are just working on testing it now. If you could please email us at ‘dev@neezio.com’ and include your name so that we can make the connection, we can send you the new file as soon as testing is complete.

Hi. I just installed the two xml files for opengraph module and changed the Theme used from deafualt to Sellya. I have just tried testing the Blog category pages to facebook share but are not getting the correct images or info or even anything to show. the site is called www.youngandmoodie.com.au Could you please take a look and tell me what you think. Thanks, Craig

Hi cmoodie,

We have checked both the Blog Category and Blog Article pages and are seeing the proper OpenGraph meta tags being generated. We have also tested a few shares of the aforementioned pages on Facebook and are seeing appropriate information there as well.

Facebook also maintains a cache of any previously shared pages and must be cleared, or expiry met, before any new content will appear. You can use the Facebook Debugger for Developers to manually query certain URLs which will clear the cache and show you the current results the crawler has found.

https://developers.facebook.com/tools/debug

If you continue to have trouble with these pages, please email us at dev@neezio.com.

I just purchased your module and implemented it on 7dealz.com but its not fetching correct image or description of the product. Please help urgently.

Have you tried clearing the cache for vQmod, Minify, or any other script optimization plugins/modules you may be using?

Also, if you are checking it against links that may have been previously entered into Facebook before, you will need to use the debugger to clear Facebook cache for that link and view any warnings or errors that Facebook may find when crawling that link:

https://developers.facebook.com/tools/debug

Still having same issues. I cleared all cache from both website and FB as you suggested.

I get following errors on FB: Open Graph Warnings That Should Be Fixed Inferred Property The ‘og:url’ property should be explicitly provided, even if a value can be inferred from other tags. Inferred Property The ‘og:title’ property should be explicitly provided, even if a value can be inferred from other tags. Inferred Property The ‘og:description’ property should be explicitly provided, even if a value can be inferred from other tags. Inferred Property The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags. og:image should be larger Provided og:image is not big enough. Please use an image that’s at least 200×200 px. Image ‘http://www.7dealz.com/image/cache/data/Food%20and%20Beverages/Coffee/coffee2-200x250.jpg' will be used instead.

Please help fix it asap.

After reviewing the source code, it appears that the script is currently unable to inject the necessary line into the “header.tpl” file which inputs the specific tags Facebook is looking for. This happens occasionally with custom templates which alter or remove the line vQmod is looking for in order to place the script’s code in the proper area.

Within the “sc_facebook_opengraph.xml” file around line 29 you will see the following file reference.

catalog/view/theme/*/template/common/header.tpl

Where the asterisk (*) is currently located, please try replacing this with the specific folder name of the template you are using. In your particular case this appears to be “GALKA”.

Additionally, if you can please email us the following file, we can verify that the standard OpenCart line the vQmod engine is looking for is present in the template.

catalog/view/theme/GALKA/template/common/header.tpl

This is the line we are looking for within that file:

echo $google_analytics;

You may email this file, and us directly, at tech@neezio.com

Hello, is this compatible with OC v1.5.6.1 (I think this is the latest)?

Hi islander,

Yes, we have had several stores on the new 1.5.6.1 software running our module just fine.

If you do ever run into any problems, you are always more than welcome to contact us and we will help resolve it.

Beautiful work GLWS

by
by
by
by
by
by