Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Facebook Open Graph Tags - Where To Place? Rate Topic   - - - - -

 

Posted 27 February 2017 - 03:08 PM #1

Hello

 

I have these tags I want to add for blog posts.  Where would I add these?  I tried to add into the post using HTML editor but does not work.

 

<meta property="og:title" content="The Nokia 3310 is back!" />
<meta property="og:type" content="article" />
<meta property="og:image" content="http://www.digitalsa...331-header.jpg"/>
<meta property="og:url" content="http://www.digitalsa...okia-3310.html"/>
<meta property="og:description" content="The Nokia 3310 is back - read about what we learned from the World Mobile Congress now"/>
<meta property="fb:admins" content="10154989022652248"/>


 

Posted 27 February 2017 - 03:31 PM #2

Does anything like this exist for CS Cart?

 

https://www.numinix....book-open-graph



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 28 February 2017 - 06:52 AM #3

Default Social buttons module can show these tags.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 28 February 2017 - 12:23 PM #4

Hello

 

The problem I have relates to blog pages.  When shared on Facebook (or run through the FB debugger) no image is used.  I get these warnings.

 

Capture.jpg

 

Product pages etc are fine.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 28 February 2017 - 12:47 PM #5

Please edit the following file

 

design/themes/THEME/templates/addons/blog/hooks/pages/page_content.pre.tpl


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 28 February 2017 - 04:15 PM #6

So what would I edit in here to fix those FB errors?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 01 March 2017 - 07:27 AM #7

So what would I edit in here to fix those FB errors?

 

As far as I can see, this page has tags from Social buttons module. Looks like it is required to rework the module a little bit to fix these errors


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 09 January 2019 - 01:12 PM #8

Resurrecting this thread.  The FB debugger has been working fine for a while, scraping images etc from the page appropriately.  Unfortunately it will no longer pull correct images through for blog posts.  Product pages are fine.

Has anyone got a solution for this problem?  Where do I add the meta property tags for each individual blog post - specifically the <meta property="og:image" tag.

Thanks



 

Posted 09 January 2019 - 01:16 PM #9

I know it needs to go in the page HEAD code - but how can I edit head code for each individual page/post rather than the entire site head code?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 09 January 2019 - 01:39 PM #10

Please pay attention to our Open Graph addon

 

https://www.ecom-lab...aph-add-on.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 09 January 2019 - 02:17 PM #11

How do you use for blog posts?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 10 January 2019 - 05:30 AM #12

How do you use for blog posts?

 

Blog posts can be set up in the Pages section since they are just pages with own type


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 10 January 2019 - 02:27 PM #13

Thanks, I've bought it.  Only issue is its put's a white box (highlighted in yellow) around the image for Facebook, how can I fill the box? 

Capture.jpg

https://www.facebook.com/digitalsave/



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 11 January 2019 - 06:22 AM #14

In the source code of the blog page I do not see code of our module. Please contact us in our HelpDesk


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3522 posts

Posted 20 December 2020 - 04:03 PM #15

As far as I understand 4.12.1 has open graph integrated, but for some reason I do not find lines

"og:description" price in stock included? Where do I check this in code?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 21 December 2020 - 06:33 AM #16

In 4.12 check the fn_seo_get_schema_org_markup_items function (app/addons/seo/func.php)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3522 posts

Posted 21 December 2020 - 07:58 AM #17

Its in the list, but not shown in view source page for some reason. Have no were to check since cs-cart demo does not have any of og: lines in view source..

    $product_item = [
        '@context'    => 'http://schema.org/',
        '@type'       => 'http://schema.org/Product',
        'name'        => fn_seo_get_schema_org_product_name($product_data),
        'sku'         => fn_seo_get_schema_org_product_sku($product_data),
        'gtin'        => fn_seo_get_schema_org_product_feature($product_data['schema_org_features'], 'gtin'),
        'mpn'         => fn_seo_get_schema_org_product_feature($product_data['schema_org_features'], 'mpn'),
        'brand'       => fn_seo_get_schema_org_product_brand($product_data),
        'description' => fn_seo_get_schema_org_product_description($product_data),
        'image'       => fn_seo_get_schema_org_product_image($product_data),
        'offers'      => [],
    ];

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21708 posts

Posted 21 December 2020 - 01:36 PM #18

Have you tried to debug the $product_item array?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)