Page 5 of 5 FirstFirst ... 345
Results 41 to 43 of 43
  1. #41
    Join Date
    Jan 2013
    Posts
    1
    Plugin Contributions
    0

    Default Re: No Image when sharing on Facebook

    Quote Originally Posted by jasperandjax View Post
    I have zen cart v1.5 and IH4 and am having the same issue as well... Well actually it sort of varies.. sometimes I get no image pulled over at all for the FB share and sometimes I get a random image out of the catalog...

    Does anyone know if this is a coding issue, on IH4 issue or a FB share issue so I might be able to figure out where to start looking. (granted I have zilch for coding skills and just google everything and trial and error till I get it figured out)
    It is a zen cart issue. I have come close to fixing mine. The only problem is I have my images in sub-directories because I have so many.

    Code:
    <meta property="og:image" content="http://<?=$_SERVER["SERVER_NAME"]?>/images/<? echo META_TAG_PRODUCT_IMAGE;?>" />
    The meta tag product image is not working for the Open graph image.

  2. #42
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: No Image when sharing on Facebook

    Quote Originally Posted by Freeze View Post
    It is a zen cart issue. I have come close to fixing mine. The only problem is I have my images in sub-directories because I have so many.
    Code:
    <meta property="og:image" content="http://<?=$_SERVER["SERVER_NAME"]?>/images/<? echo META_TAG_PRODUCT_IMAGE;?>" />
    The meta tag product image is not working for the Open graph image.
    Where do you add this code?

    thanks,
    g

  3. #43
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: No Image when sharing on Facebook

    This is not an issue specifically with Zen Cart.

    For those who use a URL Rewriter or have their website installed in a subdirectory you may want to read this post. It explains some issues facebook has with the "base" meta tag and automatic scraping.

    If you are specifying your own opengraph tags for the image, make sure the links are absolute with something like:
    Code:
    <meta property="og:image" content="<?php echo(HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $products_image); ?>" />
    You may need to modify the above code depending upon how your image path is saved in the database or if you are using IH4 (to omit DIR_WS_IMAGES, add an extra /, or use HTTPS if your entire site forces HTTPS).
    Last edited by lhungil; 28 Mar 2013 at 05:22 PM. Reason: Added a note that the paths may be different based upon modifications made to Zen Cart and added a second link.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. v155 Sharing Product to Facebook image issue
    By wmorris in forum General Questions
    Replies: 3
    Last Post: 1 Sep 2016, 02:49 PM
  2. v154 Facebook thumbnail image?
    By CosmosK in forum General Questions
    Replies: 5
    Last Post: 18 Nov 2015, 07:57 AM
  3. v151 No Image showing when shared on Facebook
    By Aissa in forum General Questions
    Replies: 0
    Last Post: 31 Jan 2015, 04:34 PM
  4. facebook share thumbnail Problem when image has including space
    By jennydutch in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 11 Aug 2014, 11:51 AM
  5. System Setup Required when linking from Facebook
    By ashley5nc in forum Basic Configuration
    Replies: 1
    Last Post: 21 Jun 2012, 06:11 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