|
 |
|
ใครพอจะเขียนโปรแกรมการดึง Comment Facebook มาใช้งานไว้บ้างครับ |
|
 |
|
|
 |
 |
|
เอาไปลองดูนะค่ะ
Code (PHP)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>Untitled Document</title>
</head>
<body>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="fb-comments" data-href="www.xxxxxxx.com" data-num-posts="10" data-width="735"></div>
</body>
</html>
|
 |
 |
 |
 |
Date :
2012-11-22 18:29:01 |
By :
mickijung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<div class="fb-comments" data-href="www.xxxxxxx.com" data-num-posts="10" data-width="735">
data-href="www.xxxxxxx.com" ก็เปลี่ยนเป็นชื่อเว็บเรา
data-num-posts="10" ต้องการให้แสดงกี่โพส
data-width="735" ขนาดความกว้างที่ต้องการ
|
 |
 |
 |
 |
Date :
2012-11-22 18:36:45 |
By :
mickijung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณ ยัยตัวร้าย มากนะครับ
แต่ที่ผมลองเอามาเล่นดู มันเป็นโค้ดที่ใช้ในการโพส Comment หรือป่าวครับ
เห็นพอผม Run Code แล้วมันขึ้นช่องให้ใส่ข้อความที่จะ Comment
แต่ที่ผมอยากได้ก็คือ การดึงข้อมูลที่มีคน Comment ไว้ใน FaceBook ของเราอะครับ
เพื่อจะเอามาทำเป็นบทความ อะไรประมาณนั้นอะครับ
^__^
|
 |
 |
 |
 |
Date :
2012-11-23 09:27:42 |
By :
MaTaDoRcpe |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณหลายครับ
|
 |
 |
 |
 |
Date :
2013-02-05 11:40:16 |
By :
hoyahoya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|