ตอนนี้ดึงได้แล้วครับ
สอบถามเพิ่มเติมครับ ถ้าจะดึงจาก หลาย ๆ Page มารวมในหน้าเว็บของเรา ให้มีข้อมูลมากกว่า 1 Page แบบ All รวม ๆ ต้องทำอย่างไรดีครับ ช่วยแนะนำหน่อยครับ เพราะตอนนี้ทำได้แค่ดึงเพจเดียว ขอบคุณครับ
<script type="text/javascript">
//initialize and set defaults
var fbFeed = new FacebookPageFeed({
'appid' : 'YOUR_APPID',
'token' : 'YOUR_APP_TOKEN',
'pagename' : 'bnk48official.noey',
'feedlimit' : 100,
'format' : 'html', //json,
'dateFormat': function(date){
return date; //format date string with moment.js or others...
},
'likesFormat': function(likes){
return likes; //format likes number...
},
'template' : function(page, post){
//console.log(page, post);
var tpl = '<h1>' page.name '</h1>';
tpl = '<p>' post.message '</p>';
return tpl;
},
onLoad: function(res){
console.log(res); //the result
}
});