Results 1 to 10 of 29

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Facebook Images Meta Tag vs AddThis

    OK, I looked at this again. I found the Add This code (for the little Share bar with multiple social networking sites, right?).

    I just put this right above the Add This code:
    PHP Code:
    <link rel="image_src" href="<?php echo "http://" $_SERVER['HTTP_HOST'] . "/shop/" $products_image_medium?>"/>
    Just change the /shop/ part to point to the folder where your images are stored. (Or change to a single / if your shop is the root of your site.) $products_image_medium already has 'images/' in it, so you don't need that.

  2. #2
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Facebook Images Meta Tag vs AddThis

    Then I thought, some of my products don't have an image, which would look boring on FB. So I created a 100x117 image called no_image.jpg and put it in the /images folder. Then, in place of the code mentioned in the last post add this line:
    PHP Code:
    <?php $fb_image = ($products_image_medium) ? $products_image_medium 'images/no_image.jpg'?>
    <link rel="image_src" href="<?php echo "http://" $_SERVER['HTTP_HOST'] . "/shop/" $fb_image?>"/>
    Then if your product has no image, the no_image.jpg will be shown instead.
    Last edited by BassFace; 13 Oct 2009 at 09:41 PM. Reason: clarity

  3. #3
    Join Date
    Feb 2005
    Location
    Prague
    Posts
    151
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    Im include this code to my shop
    But im use SEo mod and I mean it is why I can not include images to post on facebook

    When Im try to share - I see picture in popup window... but when I post it - no images

    Any idea?

  4. #4
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    This fix doesn't seem to work for me

  5. #5
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    Well, this did work when I had it in a subdirectory - but then I moved it to a new domain and root, and now it stopped working. "/" or "/images" is a no go.

  6. #6
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    YES!!! I DID IT!

    Instead of "/", I wrote "/www/" and that took care of everything!

  7. #7
    Join Date
    Feb 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    This method did not work for my site. Still looking for a solution...

  8. #8
    Join Date
    Aug 2009
    Posts
    104
    Plugin Contributions
    0

    Default Re: Facebook Images Meta Tag vs AddThis

    Quote Originally Posted by BassFace View Post
    PHP Code:
    <link rel="image_src" href="<?php echo "http://" $_SERVER['HTTP_HOST'] . "/shop/" $products_image_medium?>"/>
    I just used this code, works fine with zc 1.5.0 and the latest add this mod - Thanks!


    IE9 isn't actually linking the product full stop when you share using add this *it just shared the home page and gives a small selection of images to choose from), therefore, the problem seemingly isn't with the image code fix but the add this mod itself, any ideas anyone?

 

 

Similar Threads

  1. remove meta tag that shows on facebook?
    By billcurley in forum General Questions
    Replies: 10
    Last Post: 13 Jun 2012, 09:03 AM
  2. Main store Meta Tag overwriting Individual Item meta tag
    By DPerezjr in forum Basic Configuration
    Replies: 0
    Last Post: 20 Feb 2010, 11:12 PM

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