title: When I share post viva whatsapp share button in codeigniter postted image not showing like thumlin and we image fetch form database
body: <p>When I share post viva whatsapp share button in codeigniter postted image not showing like thumlin and we image fetch form database
  and also I see view source to image name showing proparlly</p>
  
  <p>View Source</p>
  
  <pre><code>&lt;meta property="og:image:secure_url" content="htttp://statenews.co.in/images/product_images/1000raj.jpg" /&gt;
  </code></pre>
  
  <p>View</p>
  
  <p><strong>Head Meta tag</strong></p>
  
  <pre><code>&lt;meta name="description" content="The Fatest News Channel"&gt;
  &lt;meta property="og:title" content="StateNews ! Hosla Sach Karne Ka.."&gt;
  &lt;meta property="og:type" content="article"&gt;
  &lt;meta property="og:site_name" content="News"&gt;
  &lt;meta property="og:url" content="&lt;?php echo base_url(); ?&gt;" /&gt;
  
  &lt;?php $file=base_url()."homeassets/images/".$product_images-&gt;image; 
  if(file_exists($file)){
  ?&gt;
  &lt;meta property="og:image" content="&lt;?php echo base_url(); ?&gt;images/product_images/&lt;?php echo $product_images-&gt;image; ?&gt;" /&gt;
  &lt;?php
  }else{
  ?&gt;
  &lt;meta property="og:image" content="&lt;?php echo base_url(); ?&gt;images/product_images/&lt;?php echo $product_images-&gt;image; ?&gt;" /&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>
  
  <p><strong>Whatsapp Button</strong></p>
  
  <pre><code>&lt;li style="background: #71b733;"&gt;
  &lt;a href="https://api.whatsapp.com/send?text=&lt;?php echo base_url() . $_SERVER['REQUEST_URI']; ?&gt;" data-link="&lt;?php echo base_url() . $_SERVER['REQUEST_URI']; ?&gt;" target="_blank" style="color:inherit;"&gt;
  &lt;i class="fa fa-whatsapp"&gt;&lt;/i&gt;
  &lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$data['products'] = $this-&gt;User_model-&gt;get_all_data_by2('products','product_images','product_id','master','Common',base_url(),'added_at','DESC',10);
  
  
  
  
  $this-&gt;load-&gt;view('include/header',$data);
  $this-&gt;load-&gt;view('home',$data);
  $this-&gt;load-&gt;view('include/footer',$data);
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>function get_all_data_by2($table1='',$table2='',$colum1='',$colum='',$value='',$value2='',$color='',$ord='',$limit=''){
  if((!empty($value)) &amp;&amp; (!empty($colum))) { 
  $this-&gt;db-&gt;where($colum, $value);
  }
  if(!empty($value2)){
  $this-&gt;db-&gt;or_where($colum, $value2);
  }
  if((!empty($ord)) &amp;&amp; (!empty($color))){
  $this-&gt;db-&gt;order_by($color,$ord);
  }
  if(!empty($limit)){
  $this-&gt;db-&gt;limit($limit);
  }
  $query = $this-&gt;db-&gt;select('*')
  -&gt;from($table1)
  -&gt;join($table2, "$table2.$colum1 = $table1.$colum1")
  -&gt;get();
  return $query-&gt;result();
  }
  </code></pre>