Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Feb 2011
    Posts
    666
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    Thanks for the FB debug link.
    I entered a URL that I've tried to add to my FB page and this is what I get back:

    Object Invalid Value: Object at URL 'http://www.seriousoffroadproducts.com/index.php?main_page=index&cPath=419_420_1172' of type 'product' is invalid because the given value 'META_TAG_FBIMG' for property 'og:image:url' could not be parsed as type 'url'.
    Missing Required Property: The og:url property is required, but not present.
    Missing Required Property: The og:type property is required, but not present.
    Missing Required Property: The og:title property is required, but not present.
    I'm going to re-read your prior response a dozen times or so, but to be honest I'm in way over my head here.

  2. #12
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Meta_tag_fbtitle

    What your pages ( that are not product pages) og:tags look like is this:

    Code:
     <meta property="og:title" content="Air Filters : Serious Offroad Products, To get there, you need to Get Serious"/>
        <meta property="og:site_name" content="Serious Offroad Products"/>
        <meta property="og:image" content="META_TAG_FBIMG"/>
         <meta property="og:url" content="http://www.seriousoffroadproducts.com/index.php?main_page=index&amp;cPath=411"/>
         <meta property="fb:admins" content="208325602516920"/>
        <meta property="og:type" content="product"/>
    You can see that where there should be a link to an image it instead says META_TAG_FBIMG. This is what is causing the errors. It is a flaw to the module, I think.

    So, I don't use the module. Because it works fine for product_info pages but everything else it messes up.

    So, I instead use my version, which involves a single line added to the html_head.php file and a file uploaded to the modules folder.

  3. #13
    Join Date
    Jan 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    Just had this same issue and 2 minor changes to the html_header.php file fixed it. On the 2 lines below, remove the "FB":

    <meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/>
    <meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>"/>

  4. #14
    Join Date
    Feb 2011
    Posts
    666
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    Quote Originally Posted by Metalomania View Post
    Just had this same issue and 2 minor changes to the html_header.php file fixed it. On the 2 lines below, remove the "FB":

    <meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/>
    <meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>"/>
    Just tried it on my html_header.php file (public_html/includes/templates/darkness/common) and still get the same thing.

    Didn't work for me.

  5. #15
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Meta_tag_fbtitle

    It is because you need to define what META_TAG_FBIMG is. Or define what META_TAG_IMG is. If it is undefined you will get an error.

    The little bit of code I posted earlier sets it to the product image on the products pages and sets it to a default image ( which you need to upload to the images folder) for all other pages. Which is the way I like it to work.

    If you just want to use a default image the whole time then you'd have


    Code:
    <meta property="og:image" content="path_to_image"/>
    Where path_to_image might be something like http://www.mydomain.com/images/my_default_og_image.jpg.

  6. #16
    Join Date
    Nov 2011
    Posts
    27
    Plugin Contributions
    2

    Default Re: Meta_tag_fbtitle

    META_TAG_FBTITLE issue is fixed. Please take a look at this contribution: http://www.zen-cart.com/index.php?ma...oducts_id=2026

    Regards
    Gopinath Goswami
    OnlineSurgicals.com

  7. #17
    Join Date
    Nov 2007
    Posts
    258
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    Quote Originally Posted by gopinathgoswami View Post
    META_TAG_FBTITLE issue is fixed. Please take a look at this contribution: http://www.zen-cart.com/index.php?ma...oducts_id=2026

    Regards
    Unfortunately I still get that META_TAG_FBTITLE showing up whenever I try to post a category page on my FB wall. I checked the source and strangely the title there looks ok. Do you know why or from where do I still get that mysterious META_TAG_FBTITLE?

    thanks,
    gabstero

  8. #18
    Join Date
    Nov 2011
    Posts
    27
    Plugin Contributions
    2

    Default Re: Meta_tag_fbtitle

    Hi,

    You will have to uninstall your previous addon for FB and install the above referred addon fresh for it to work.

    Regards
    Gopinath Goswami
    Gopinath Goswami
    OnlineSurgicals.com

  9. #19
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,122
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    This is what I have in my html_header.php file and works fine.

    <meta property="og:title" content="<?php echo META_TAG_TITLE; ?>" />
    <meta property="og:type" content="product" />
    <meta property="og:site_name" content="<?php echo STORE_NAME; ?>" />
    <meta property="fb:admins" content="enteryourfacebookadminnumberhere" />
    <?php
    if (isset($_GET['products_id'])) { // use products_image if products_id exists
    $facebook_image = $db->Execute("select p.products_image from " . TABLE_PRODUCTS . " p where products_id='" . (int)$_GET['products_id'] . "'");
    $fb_image = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $facebook_image->fields['products_image'];
    }
    if ($fb_image == '') { // if no products image, use the default image if enabled
    $fb_image = 'insertdefaultimageurlhere.jpg';
    }
    if ($fb_image != '') {
    ?>
    <meta property="og:image" content="<?php echo $fb_image; ?>" />

  10. #20
    Join Date
    Feb 2011
    Posts
    666
    Plugin Contributions
    0

    Default Re: Meta_tag_fbtitle

    Time to revisit this....

    Recently upgraded to zc1.50
    Installed the Facebook like button add-on and got the dreaded FBIMG and FBtitle issue all over agin.

    I deleted the "FB" as previously stated in the is thread from the includes/templates/CUSTOMTEMPLATE/common/html_header.php
    Heres how it looks now:
    <head>
    <title><?php echo META_TAG_TITLE; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&trade; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />
    <meta property="og:title" content="<?php echo META_TAG_TITLE; ?>"/>
    <meta property="og:site_name" content="<?php echo TITLE; ?>"/>
    <meta property="og:image" content="<?php echo META_TAG_IMG; ?>"/>
    <meta property="og:url" content="<?php echo $canonicalLink; ?>"/>
    <meta property="fb:admins" content="################"/>
    <meta property="og:type" content="product"/>
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php } ?>
    My problem currently is no images showing when I post a link to a product or category.
    Also, posting a link to a category still shows META_TAG_FBTITLE on my FB page.

    A sample link to a category if you want to try it yourself.
    http://www.seriousoffroadproducts.co...hes/Smittybilt

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support
    By gopinathgoswami in forum All Other Contributions/Addons
    Replies: 61
    Last Post: 25 May 2013, 11:26 PM
  2. META_TAG_FBTITLE in my Facebook links
    By duiwel in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 23 May 2012, 02:56 AM
  3. Replies: 0
    Last Post: 22 Dec 2011, 12:59 AM
  4. Facebook addon mod doesn't incorporate PHPBB support
    By HaIzI72G3T in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Dec 2011, 01:36 AM
  5. Facebook addon problems
    By Maynards in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 22 Apr 2010, 03:38 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
  •