Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2015
    Posts
    4
    Plugin Contributions
    0

    Default Facebook preview shows unwanted banners and metatags

    This isn't my first time with Zen Cart, I already run a site, HPLAudio.com so I'm a bit familliar, but for some reason with this new site EDCblitz.com I can't seem to get the banners and taglines off the site preview when posting the link on Facebook even though I have them disabled through ZCAdmin.



    Thanks for your help in advance

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    224
    Plugin Contributions
    3

    Default Re: Facebook preview shows unwanted banners and metatags

    It looks like Facebook is grabbing your meta-tag data. If you edit:
    includes/languages/english/YOUR_TEMPLATE/meta_tags.php

    I have made edits directly in Facebook when the default Zen Image and Text appear. Click on the image and upload your own, click on the text it turns yellow and you can edit. :)

  3. #3
    Join Date
    Apr 2015
    Posts
    4
    Plugin Contributions
    0

    Default Re: Facebook preview shows unwanted banners and metatags

    Quote Originally Posted by Trinity14 View Post
    It looks like Facebook is grabbing your meta-tag data. If you edit:
    includes/languages/english/YOUR_TEMPLATE/meta_tags.php

    I have made edits directly in Facebook when the default Zen Image and Text appear. Click on the image and upload your own, click on the text it turns yellow and you can edit. :)
    Wait I don't understand a thing you just said. I have these edits in my meta-tags right now and nothing else.



    In my template, I don't have a meta_tags.php file

  4. #4
    Join Date
    Apr 2015
    Posts
    4
    Plugin Contributions
    0

    Default Re: Facebook preview shows unwanted banners and metatags

    Quote Originally Posted by Trinity14 View Post
    It looks like Facebook is grabbing your meta-tag data. If you edit:
    includes/languages/english/YOUR_TEMPLATE/meta_tags.php

    I have made edits directly in Facebook when the default Zen Image and Text appear. Click on the image and upload your own, click on the text it turns yellow and you can edit. :)
    Wait I don't understand a thing you just said. I have these edits in my meta-tags right now and nothing else.



    In my template, I don't have a meta_tags.php file

    Do you think it's a Facebook cache thing?

  5. #5
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,585
    Plugin Contributions
    3

    Default Re: Facebook preview shows unwanted banners and metatags

    well i just typed your site address into my facebook status update thingie

    and it gave me the zencart lines and zencart image rather than your site, si I believe it may be cacheing

    here

    https://developers.facebook.com/tool...2Fedcblitz.com
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  6. #6
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,585
    Plugin Contributions
    3

    Default Re: Facebook preview shows unwanted banners and metatags

    I just ran the above script does your site work correctly now?
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  7. #7
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,585
    Plugin Contributions
    3

    Default Re: Facebook preview shows unwanted banners and metatags

    Ok for anyone else that runs into this issue

    1) Follow what trinity14 says, because if that isn't correct nothing will fix it
    2) go to the link below

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

    paste your URL

    and select "show scrape information", this will show you what facebook has in its cache for that page

    If it is not what you expect to be there.

    then select "Get new Scrape" information, then check your facebook thingie
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  8. #8
    Join Date
    Apr 2015
    Posts
    4
    Plugin Contributions
    0

    Default Re: Facebook preview shows unwanted banners and metatags

    Quote Originally Posted by nigelt74 View Post
    Ok for anyone else that runs into this issue

    1) Follow what trinity14 says, because if that isn't correct nothing will fix it
    2) go to the link below

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

    paste your URL

    and select "show scrape information", this will show you what facebook has in its cache for that page

    If it is not what you expect to be there.

    then select "Get new Scrape" information, then check your facebook thingie
    I just checked. It's working. You guys are wonderful and I'll make sure to pay it forward!

    Chris

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,033
    Plugin Contributions
    32

    Default Re: Facebook preview shows unwanted banners and metatags

    Sharing the code I used.. The one module that automatically creates the meta tags required for Facebook REQUIRES the CSS/JS Loader.. Personally, I'm not a fan of being FORCED to use a module I don't particularly care for JUST to use another module.. So I did a little work to figure out the right code I needed..

    In the includes/templates/scrappin_stuff/common/html_header.php file, find this:
    Code:
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    Below that add this:
    Code:
    <meta property="og:locale" content="en_US" /> <!-- This is for USA, if your locale is different enter it here -->
    <meta property="og:type" content="website" />
    <meta property="og:title" content="<?php echo STORE_NAME; ?>" />
    <meta property="og:description" content="Enter your own site description here" /> <!-- Enter your site description here -->
    <meta property="og:url" content="<?php echo $canonicalLink; ?>" />
    <meta property="og:site_name" content="<?php echo STORE_NAME; ?>" />
    <meta property="og:image" content="<?php echo HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE; ?>" />
    To verify that things are working go to the Facebook link: https://developers.facebook.com/tools/debug/og/object/

    Enter your URL and click "Show Scrape Information". If there are any errors, you will see them here. You'll need to address those error. If the data shown does not match your current meta tags, the click the "Get New Scrape" information to refresh the data.
    Last edited by DivaVocals; 3 May 2015 at 08:58 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Sep 2016
    Location
    Dallas, TX USA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Facebook preview shows unwanted banners and metatags

    That scrape info was very useful, thank you! I wasn't able to get the image I wanted into the post on facebook... but at least I was able to remove the one I DIDN'T want on there!

 

 

Similar Threads

  1. v139h Product HTML shows in preview then erased on update
    By Jim Untershine in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 25 Oct 2014, 08:57 PM
  2. admin preview shows code not what site will show
    By marvin in forum Basic Configuration
    Replies: 9
    Last Post: 22 Feb 2013, 09:36 PM
  3. remove meta tag that shows on facebook?
    By billcurley in forum General Questions
    Replies: 10
    Last Post: 13 Jun 2012, 09:03 AM
  4. Admin preview of welcome email shows red x for an image I added
    By pixelpadre in forum General Questions
    Replies: 6
    Last Post: 15 Jan 2009, 01:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR