อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
Ittichai_chupol
PHP VIP Members
PHP VIP Members
โพสต์: 5410
ลงทะเบียนเมื่อ: 19/09/2018 10:33 am

อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb

โพสต์ที่ยังไม่ได้อ่าน โดย Ittichai_chupol »

-- ผมต้องการแชร์ ข้อมูล จากบอร์ด phpbb ไปยัง facebook โดยจะมีการแสดงหัวข้อ เนื้อหาบางส่วน และรูปภาพที่มีอยู่อยู่ในกระทู้ ด้วย
-- แต่ได้พยายามทำแล้ว ก็มีการแสดงหัวข้อ เนื้อหาบางส่วน แต่ไม่มีการแสดงรูปขึ้นมาสักที่
-- โดยผมลอง debug โปรแกรมก็พบว่ามี องค์ประกอบ ครบ แต่เมือนำไปทดสอบ ใน ตัวแก้ไขการแชร์ ของ facebook พบว่ามีองค์ประกอบไม่ครบ
-- จึงเลยอยากขอวิธีการแก้ไข หน่อยนะครับว่า จะต้องไปแก้ไขที่ส่วนไหนบาง


**ผลลัพที่ได้หลังการแชร์
b4-12.png
b4-12.png (83.18 KiB) Viewed 1699 times

**ผลัพจากการนำไปทดสอบ .ในตัวแก้ไข ของ facebook
b2-12.png
b2-12.png (168.73 KiB) Viewed 1699 times
b3-12.png
b3-12.png (55.49 KiB) Viewed 1699 times


**ผลลัพจากการ debug ระบบ
b1-12.png
b1-12.png (41.15 KiB) Viewed 1699 times
ขอให้วันนี้เป็นวันที่ดี
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

ตัวอย่าง

โค้ด: เลือกทั้งหมด

<!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
PHP VIP Members
โพสต์: 5410
ลงทะเบียนเมื่อ: 19/09/2018 10:33 am

Re: อยากทราบแนวทางการแก้ไข ปัญหา การแชร์ข้อมูลโพส บน facebook โดย phpbb

โพสต์ที่ยังไม่ได้อ่าน โดย Ittichai_chupol »

ผมลองทำแล้วได่้มา แบบนี้ใช้ไหม ครับ


ิ2-15.png
ิ2-15.png (118.12 KiB) Viewed 1676 times
b1-15.png
b1-15.png (47.83 KiB) Viewed 1676 times


โค้ด: เลือกทั้งหมด

<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="" />
ขอให้วันนี้เป็นวันที่ดี
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 122