สอนการทำ Invite ของ Facebook หน่อยครับ
ถาม-ตอบ แนะนำไอเดียว โค้ดตัวอย่าง แนวทาง วิธีแก้ปัญหา สอนการทำ Invite ของ Facebook หน่อยครับ
สอนการทำ Invite ของ Facebook หน่อยครับ

คำแนะนำ และการใช้งาน
สมาชิก กรุณา ล็อกอินเข้าระบบ เพื่อตั้งคำถามใหม่ หรือ ตอบคำถาม สมาชิกใหม่ สมัครสมาชิกได้ที่ สมัครสมาชิก
- ถาม-ตอบ กรุณา ล็อกอินเข้าระบบ
เหมือนจะคอยเล่นอยู่ แต่ยังไม่ได้ทำอะไรต่อ เข้าไปดูตัวอย่างคร่าวๆ
https://www.ninenik.com/fb/facebook_dialog_01.php
เป็นตัวทดสอบ เล่น หลายสัปดาห์แล้ว ต้องประยุกต์ เพิ่ม จึงจะสามารถนำไปใช้งานได้
ลองแนะนำไอเดียการนำไปใช้ เผื่อจะเป็นแนวทาง ในการนำไปประยุกต์ต่อได้

คือเราจะทราบได้อย่างไรครับ ว่าเรา invite ให้กับ id อะไรบ้างครับ?

ได้แล้วครับ ขอบคุณครับ
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < fb:serverFbml width = "615" > < script type = "text/fbml" > < fb:request-form method = 'GET' invite = "true" type = 'join my group' content="Would you like to join my group? <fb:req-choice url = 'http://apps.facebook.com/YOUR APP' label = 'Let' s join' />"> < fb:multi-friend-selector showborder = "false" bypass = "cancel" cols = 4 actiontext = "Invite your friends to join my group." > </ fb:request-form > </ script > </ fb:serverFbml > |

ต้องกำหนด Tag อะไรเพิ่มเติมอีกหรือเปล่าครับ ผมลองแล้วมันไม่ขึ้นเลย งงมาก

ใส่ส่วนนี้ที่ข้างบนด้วยครับ
1 2 3 4 5 6 7 8 9 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" < head > ... </ head > < body > </ body > </ html > |
1 | < br type = "_moz" > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | และ < div id = "fb-root" ></ div > < script > window.fbAsyncInit = function() { FB.init({appId: "<?=$_faceboook_apps_id;?>", status: true, cookie: false, xfbml: true}); FB.Canvas.setSize(); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); </ script > |

กำ ทำไมมันขึ้นแบบนั้นหว่า สรุปใหม่นะครับ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
...
</head>
<body>
...
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: "<?=$_faceboook_apps_id;?>",
status: true,
cookie: false,
xfbml: true});
FB.Canvas.setSize();
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
</body>
</html>

ทำได้แล้วครับ ขอบคุณมากๆๆ เลย

1 | Surangkana.phommala |
http:/facebook.com surangkana.phommala
