Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 55
  1. #11
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Sharing Website on Facebook isn't working.

    Currently I am working on an add-on for the first time. What I am trying to do is adding a icon in the Categories/Product Listing in the Admin next to the left of the edit icon with (f) for Facebook. When you click on that icon for that product you can share that product on Facebook instead using the main root product pages. What I did is downloaded an add-on "Zen-Bookmarkinging Wedget" its a Facebook Product Sharer for the main root of the website. I am using his/her code and change it up a little:

    The file I was trying to put in is admin/includes/modules/categories_product_listings.php I am not sure this is correct.

    Code:
    <?php echo '<a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&t=<?php echo $products_name; ?>" rel='external nofollow' target='_blank' >' . zen_image(DIR_WS_IMAGES . 'facebookicon-small.png', ICON_FACEBOOK) . '</a>; ?>

  2. #12
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Sharing Website on Facebook isn't working.

    Quote Originally Posted by wmorris View Post
    Another issue sharing an item to to Facebook. When sharing an item on Facebook it doesn't show the actual image of the product it shows something else. Is this an Facebook coding or what?
    Isn't this a more of a functionality of facebook og code requirements?
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #13
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Sharing Website on Facebook isn't working.

    Well I was able to get the icon the way I want it. Here is the image:
    I am having trouble getting it linked right.

    What I did is copied this:

    Code:
    <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id']  . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) . '</a>'; ?>
    to

    Code:
    <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id']  . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'facebookicon-small.png', ICON_FACEBOOK_SHARE) . '</a>'; ?>
    Then I paste the second code above the first code. Now I am trying to get code right where it share it on Facebook.
    Click image for larger version. 

Name:	Screen Shot 2016-04-20 at 1.16.09 PM.png 
Views:	72 
Size:	95.8 KB 
ID:	16241

  4. #14
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Sharing Website on Facebook isn't working.

    Ok, so far I have over 100 products and every time I share different ones I keep getting this? So if you go to my website for an example at:

    http://www.morrisgiftshop.biz/index....roducts_id=113

    and I share this product to Facebook I got this:
    Click image for larger version. 

Name:	Screen Shot 2016-04-21 at 7.59.27 PM.jpg 
Views:	52 
Size:	53.3 KB 
ID:	16247

    Why is it doing this on Facebook?

    and this:

  5. #15
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Requesting an Product Share to Facebook in Admin Area....

    I am requesting an addon about Sharing your product to Facebook using the Admin area. I have image what it would look like. You can see the black image left side of the edit button. That will Facebook Sharer. Right now I am having trouble coming up with a php/link to able to share it to Facebook. I hope someone help get started.

    Here is a code started out with.

    Code:
    <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id']  . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'facebookicon-small.png', ICON_FACEBOOK_SHARE) . '</a>'; ?>

    Click image for larger version. 

Name:	Screen Shot 2016-04-20 at 1.16.09 PM.png 
Views:	54 
Size:	95.8 KB 
ID:	16248

  6. #16
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Requesting an Product Share to Facebook in Admin Area....

    Why is Facebook pulling a different image instead of the product image when I share it on Facebook?

  7. #17
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Requesting an Product Share to Facebook in Admin Area....

    My guess as I think minorly referenced above is it has to do with the applicable tags and/or potential html validation. In researching things facebook, came across the open graph markup, see: https://developers.facebook.com/docs...masters#markup
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #18
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Requesting an Product Share to Facebook in Admin Area....

    Quote Originally Posted by mc12345678 View Post
    My guess as I think minorly referenced above is it has to do with the applicable tags and/or potential html validation. In researching things facebook, came across the open graph markup, see: https://developers.facebook.com/docs...masters#markup
    Ok, I did installed this "Facebook OG" aka Open Graph here:

    https://www.zen-cart.com/downloads.php?do=file&id=1820

    You can take a look at the image here:

    http://morrisgiftshop.biz/images/image1.png

    Do I need to configure the image in that configuration?

  9. #19
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Requesting an Product Share to Facebook in Admin Area....

    Well, supposedly, that code will provide the markup (meta tags) necessary for facebook to recognize all of the "important" details. From the referenced download location, should also install the css js loader (mind you make a backup of the database and store files before installing that as it makes significant changes to admin and potentially store side.) undoing those changes is difficult without a backup.

    A lot of what those files in the opengraph download can be implemented without the plugin by incorporating into the applicable header file.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #20
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Requesting an Product Share to Facebook in Admin Area....

    Ok, I have installed CSS JS Loader because its require for Facebook Open Graph then When I share a product to Facebook I got NO image when sharing.
    Here is a link to an image to see what I am talking about.

    http://www.morrisgiftshop.biz/images/fbimage.png

 

 
Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. v154 Looking for: Product Share Facebook and other Networks
    By wmorris in forum General Questions
    Replies: 1
    Last Post: 31 Dec 2015, 10:37 PM
  2. Facebook "Like/Share" Plugin - Using OG info for each product?
    By rubiconpeak in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2012, 12:08 AM
  3. Facebook share?
    By provida in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 17 Nov 2011, 02:36 PM
  4. Share you purchased product on facebook at the thankyou for you order screen
    By Paddy Furn in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Nov 2011, 04:43 PM
  5. Share on Facebook
    By pawel.m in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Nov 2010, 02:56 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