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

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

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

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

โดย Ittichai_chupol » 15/01/2019 2:30 pm

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


ิ2-15.png
ิ2-15.png (118.12 KiB) Viewed 1693 times
b1-15.png
b1-15.png (47.83 KiB) Viewed 1693 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="" />

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

โดย thatsawan » 12/01/2019 10:40 pm

ตัวอย่าง

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

<!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> 

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

โดย Ittichai_chupol » 12/01/2019 2:52 pm

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


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

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


**ผลลัพจากการ debug ระบบ
b1-12.png
b1-12.png (41.15 KiB) Viewed 1716 times

ข้างบน