Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call image url


Matthew Rutledge

Recommended Posts

I am working on a Facebook like button mod I found instructions for, the Open Graph? meta tags aren't giving the correct image url, they go to a "blank file" What code could I use to get a direct link to a product image or thumbnail image?

This is the code I'm using.

 

<!--begin facebook meta-->

<meta property="fb:app_id" content="358304744202118" >

<meta property="og:site_name" content="<?php echo STORE_NAME;?>" >

<meta property="og:url" content="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ;?>" >

<meta property="og:title" content="<?php echo META_TAG_TITLE;?>" >

<meta property="og:image" content="<?php echo tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $mt_product_info['products_image'] ); ?>" >

<meta property="og:description" content="<?php echo strip_tags($mt_product_info['products_description']);?>" >

<meta property="og:type" content="product" >

<!--end facebook meta -->

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...