Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (68414 Members, 793 Products, 5353 Topic, 13045 Comments)

Photo thumbnail tidak tampil di dinding facebook dan Whatsapp

Dibuat
Login Terakhir 5 Bulan lalu,
Telah Dilihat 2203 Kali
Saefullah11 Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Bagaimana cara menampilkan Photo thumbnail ketika melakukan share ke sosial media pada Web Portal Kampus Responsive Codeigniter 3,x ?
  3.  

Ada 5 Jawaban

sudirman saputra
commented on 04 Sep 2019 01:42:26
  1. Assalamualaikum,.. saya coba jawab mas ^_^ di websitenya apakah sudah terpasang opengraph (OG) ? jika belum mas coba dulu buat meta og nya,, contoh :
  2. <meta property="og:title" content="<?php echo $title; ?>" />
  3. <meta property="og:description" content="<?php echo $iden['meta_deskripsi']; ?>" />
  4. <meta property="og:url" content="<?php echo "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" />
  5. <meta property="og:site_name" content="<?php echo $iden['nama_website']; ?>" />
  6. <meta property="og:image:type" content="jpg"/>
  7. <meta property="og:type" content="article" />
  8. untuk lebih jelasnya sudah ada dibahas di topic ini https://members.phpmu.com/forum/read/mohon-dijawab-swarakalibata-ci
sudirman saputra
commented on 04 Sep 2019 01:47:22
  1. Assalamualaikum,.. untuk mengecek meta properti OG nya, bisa menggunakan debugger objek dari facebook
  2. https://developers.facebook.com/tools/debug/og/object/
Bukhori Muslim
commented on 05 Sep 2019 06:11:23
  1. Assalamualaikum,.. Alhamdulillah sudah dibantu jawab oleh agan Sudirman Saputra. Jazakallahu Khoir,.. ^_^
Khoirul Amin
commented on 04 Jul 2020 15:53:56
  1. Assalamualaikum,.. hasil cek debug nya via facebook
  2. https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fwww.stainh.ac.id%2F
PHPMU.COM Support
commented on 05 Jul 2020 09:53:13
Salah satu jawaban terbaik,..
  1. Assalamualaikum,.. "Khoirul Amin" : coba buka file
  2. application\views\phpmu-tigo\template.php
  3.  
  4. Dan tambahkan didalam tag head script berikut :
  5. <?php
  6. if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){
  7. $rows = $this->model_utama->view_where('berita',array('judul_seo' => $this->uri->segment(3)))->row_array();
  8. $image = base_url().'asset/foto_berita/'.$rows['gambar'];
  9. }else{
  10. $berita = $this->model_utama->view_where('berita',array('judul_seo' => $this->uri->segment(1)));
  11. if ($berita->num_rows()>=1){
  12. $rows = $berita->row_array();
  13. $image = base_url().'asset/foto_berita/'.$rows['gambar'];
  14. }else{
  15. $image = base_url().'asset/images/favicon.png';
  16. }
  17. }
  18. echo '<meta property="og:title" content="'.$title.'"/>
  19. <meta property="og:type" content="article"/>
  20. <meta property="og:url" content="http://'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI'].'" />
  21. <meta property="og:image" content="'.$image.'"/>
  22. <meta property="og:description" content="'.$description.'"/>';
  23. ?>
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online