unik Posted January 12, 2012 Share Posted January 12, 2012 Hello, I'm trying to share a link to my product product page on Facebook but it shows only my domain. An example: I cut and paste in Facebook my url product page: http://www.mirman.es...om-wifi-3g.html This what Facebook takes: http://www.mirman.es/ The same result with differents browsers. The same resutl using Addthis or directly cut and paste on Facebook. This issue only appears in Facebook not in Twitter. I read a lot but I can't find where or how to solve my problem. Any ideas? Regards. Link to comment Share on other sites More sharing options...
DenisDenis Posted January 12, 2012 Share Posted January 12, 2012 I've also had problems with facebook, instead of taking the discription of a product it show the code of the email notifier. I don't know if this is caused by facebook or prestashop... Don't know a solution either so help would be appreciated. Link to comment Share on other sites More sharing options...
unik Posted January 13, 2012 Author Share Posted January 13, 2012 No comments? I'm really confused with this issue. Link to comment Share on other sites More sharing options...
DenisDenis Posted January 18, 2012 Share Posted January 18, 2012 It would seem we are the only 2 people that have trouble with facebook... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 Hi unik and DenisDenis, I just tried this out on my personal account with no issues. Have you tried clicking on the description text field before hitting post? Thanks to a recent update, you should be able to edit it however you wish before submitting it. -Mike Link to comment Share on other sites More sharing options...
unik Posted January 20, 2012 Author Share Posted January 20, 2012 Hi Mike, Yes I copy the url of a product page of my shop and paste in the field text of Facebook. The result is that FB takes the title, url and description of the homepage of my shop. I suppose there is some issue with my head.tpl but I don't know how to solve it. Regards. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 20, 2012 Share Posted January 20, 2012 Hi unik, So is the issue more with the images Facebook grabs from that link? If not, can you post a screenshot of the issue? -Mike Link to comment Share on other sites More sharing options...
unik Posted January 21, 2012 Author Share Posted January 21, 2012 Hi Mike, This is what happens if I cut and paste de URL to FB: At first time, FB takes and show the URL, title and description of the homepage, but when you click Publish, the link goes to the product page, that´s fine. As you said, I can change the text showed according with the product page. About the images, your right, I can´t select the correct image because FB let me select between images that appears at homepage. If I use for sharing the button from Addthis, it just publish the url, title, description and image from the homepage. If you need a screenshot, no problem, i will upload. Regards. Link to comment Share on other sites More sharing options...
unik Posted January 22, 2012 Author Share Posted January 22, 2012 Hi Mike, Well, I solved this issue. Adding at header.tpl xmlns:fb="https://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" And adding in the same file: <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}"/> <meta property="og:type" content="product"/> <meta property="og:url" content="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/> Thanks for your interest. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 23, 2012 Share Posted January 23, 2012 Great, I'm glad you were able to resolve this! Happy Monday! -Mike Link to comment Share on other sites More sharing options...
dagnez Posted November 28, 2012 Share Posted November 28, 2012 as for the image: {% if template == 'product' %} <meta property="og:image" content="[spam-filter] product.featured_image | product_img_url: 'compact' [spam-filter]" /> {% endif %} Link to comment Share on other sites More sharing options...
UTD Posted August 4, 2013 Share Posted August 4, 2013 Hi Mike, I got alike issue. The situation is: I can share any product link without any visible problem on Facebook, twitter and Pinterest. the description and the image are OK. But, when anybody press the shared link on the mentioned sicial pages - the one is open in a new tab of the browser with blank page. You can try to share as a sample this link on any mentioned social networks and see how it works after publishing: http://www.ukrainiantraditionaldress.com/en/home/50-Men-Embroidered-Shirt-Vyshivanka-Voloshky.html Link to comment Share on other sites More sharing options...
vekia Posted August 4, 2013 Share Posted August 4, 2013 hello have you got possibility to check php error log? Link to comment Share on other sites More sharing options...
UTD Posted August 5, 2013 Share Posted August 5, 2013 I resolved the issue like this: Presta alerted that I have fopen and magic quotes issues, so to eleminate this, I had to create the php.ini (which was missing on default in the public_html), In php.ini I switch ON the fopen and Off the magicquotes. Then I made a directive in the htaccess file (in the root directory) - as this: SetEnv PHPRC /home/username/public_html/php.ini after this the the setting of php.ini were accepted by the server on all levels. The only error was alerted in the backoffice parametrs ( Advanced Parameters Configuration Information ) - the missing file: classes/searchengine.php (I have found it in the backup of native presta files and uploaded to classes) finally all sharing started to work (on FB, pinterest and tweeter) Link to comment Share on other sites More sharing options...
Recommended Posts