-- ผมต้องการแชร์ ข้อมูล จากบอร์ด phpbb ไปยัง facebook โดยจะมีการแสดงหัวข้อ เนื้อหาบางส่วน และรูปภาพที่มีอยู่อยู่ในกระทู้ ด้วย
-- แต่ได้พยายามทำแล้ว ก็มีการแสดงหัวข้อ เนื้อหาบางส่วน แต่ไม่มีการแสดงรูปขึ้นมาสักที่
-- โดยผมลอง debug โปรแกรมก็พบว่ามี องค์ประกอบ ครบ แต่เมือนำไปทดสอบ ใน ตัวแก้ไขการแชร์ ของ facebook พบว่ามีองค์ประกอบไม่ครบ
-- จึงเลยอยากขอวิธีการแก้ไข หน่อยนะครับว่า จะต้องไปแก้ไขที่ส่วนไหนบาง
**ผลลัพที่ได้หลังการแชร์
**ผลัพจากการนำไปทดสอบ .ในตัวแก้ไข ของ facebook
**ผลลัพจากการ debug ระบบ
อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb
Moderators: mindphp, ผู้ดูแลกระดาน
- Ittichai_chupol
- PHP VIP Members
- Posts: 3103
- Joined: 19/09/2018 10:33 am
-
- PHP VIP Members
- Posts: 19745
- Joined: 31/03/2014 10:02 am
- Contact:
Re: อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb
ตัวอย่าง
Code: Select all
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="{URL}" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="th_TH" />
<meta property="og:title" content="EMS ของ ไปรษณีย์ไทย ปรับอัตราค่าบริการ โดย" />
<meta property="og:site_name" content="minfphp.com"/>
<meta property="og:url" content="{URL}" />
<meta property="og:description" content="EMS ของ ไปรษณีย์ไทย ปรับอัตราค่าบริการ โดย EMS ในประเทศ สำหรับสิ่งของฝากส่งที่มีพิกัดน้ำหนัก ตั้งแต่ 3 - 20 กิโลกรัม กระตุ้นการเติบโตของธุรกิจอีคอมเมิร์ซ ตารางราคา ตามภาพ"/>
<meta property="og:image" content="{url_image}"/>
</head>
<body>
</body>
</html>
- Ittichai_chupol
- PHP VIP Members
- Posts: 3103
- Joined: 19/09/2018 10:33 am
Re: อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb
ผมลองทำแล้วได่้มา แบบนี้ใช้ไหม ครับ
Code: Select all
<meta property="og:type" content="website" />
<meta property="og:locale" content="th_TH" />
<meta property="og:title" content="Welcome to phpBB3" />
<meta property="og:site_name" content="thaivi demo.com" />
<meta property="og:url" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/.http://122.155.168.168/~mdsoft/thaivi/phpBB32/viewtopic.php?f=2&t=1&sid=d9565f0624a6cc6b7bd3573a965fb123&p=1" />
<meta property="og:description" content="This is an example post in your phpBB3 installation. Everything seems to be working. You may delete this post if you like and continue to set up your board. During the installation process your first category and your first forum are assigned an appropriate set of permissions for the predefined usergroups administrators, bots, global moderators, guests, registered users and registered COPPA users. If you also choose to delete your first category and your first forum, do not forget to assign permissions for all these usergroups for all new categories and forums you create. It is recommended to rename your first category and your first forum and copy permissions from these while creating new categories and forums. Have fun!
b1-05.png (57.46 KiB) Viewed 9 times
" />
<meta property="og:image" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/.http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230" />
<meta property="og:image" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/.http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230&sid=d9565f0624a6cc6b7bd3573a965fb123" />
<meta property="og:image" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230" />
<meta property="" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/.http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230" />
<meta property="" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/.http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230&sid=d9565f0624a6cc6b7bd3573a965fb123" />
<meta property="" content="http://122.155.168.168/~mdsoft/thaivi/phpBB32/download/file.php?id=230" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="keywords" content="" />
<meta name="description" content="" />
Users browsing this forum: No registered users and 15 guests