Jump to content

[SOLVED] Impossible to share product page on Facebook


Recommended Posts

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

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

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

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

  • 10 months later...
  • 8 months later...

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

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 separator_breadcrumb.png Configuration Information separator_breadcrumb.png )

 

- 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

×
×
  • Create New...