Jump to content

Problema Link immagini da Negozio Facebook


Recommended Posts

Ciao a tutti

Ho provato ad inserire il negozio su FaceBook - ma ho il seguente problema:

Non linka le immagini in quanto genera un link errato:

Invece di generare questo link:

Mi genera questo:

Dove sbaglio?

Se guardo il codice sorgente su FACEBOOK mi dice:

Image de couverture

Possibile che ci sia un errore in questa riga del modulo FACEBOOK:

echo"\t\t\n\t\t\t<![CDATA[".$_GET['id_product']."]]>\t\t\t<![CDATA[".$product->name."]]>\n\t\t\t<![CDATA[".$category->name."]]>\n\t\t\t<![CDATA[".$product->id_category."]]>\n";//nom du produit
$images = $product->getImages(intval($cookie->id_lang));
$productImages = array();
foreach ($images AS $k => $image)
if ($image['cover'])
$cover = $image;
$cover['id_image'] = intval($product->id).'-'.$cover['id_image'];
$cover['id_image_only'] = $image['id_image'];
echo"\t\t\thttp://".htmlspecialchars($_SERVER["HTTP_HOST"], ENT_COMPAT, "UTF-8").__PS_BASE_URI__."img/p/".$cover['id_image']."-large.jpg\n";
$productImages[$image['id_image']] = $image;
echo "\t\t\t<![CDATA[http://".htmlspecialchars($_SERVER["HTTP_HOST"], ENT_COMPAT, "UTF-8").__PS_BASE_URI__."img/p/".intval($product->id)."-".$image["id_image"]."-thickbox.jpg]]>\n";

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...