ไม่ค่อยมีใครเขียนblog เกี่ยวกับการพัฒนาโปรแกรมบน Facebook เลย ที่เห็นก็มี เริ่มต้นกับการเขียน Facebook Application สำหรับผู้เริ่มต้น (PHP) แค่นั้นเอง
Resource
ตัวอย่างจาก "Quick Creation Guide"
ใช้ PHP คู่กับ facebook php lib
Resource
- Facebook Developer Wiki!
- SVN: facebook api trunk
- SVN: facebook php lib
- FB API
- Get Started
- Anatomy of an App
- Guiding
ตัวอย่างจาก "Quick Creation Guide"
ใช้ PHP คู่กับ facebook php lib
<html>
<body bgcolor="#EFEFEF">
<?php
// Copyright 2007 Facebook Corp. All Rights Reserved.
//
// Application: CustomBlock
// File: 'index.php'
// This is a sample skeleton for your application.
//
require_once 'facebook.php';
$appapikey = '2341a3d3dbdd56027ff68ac20d88ea21';
$appsecret = '453e2f1c901fc7363271c9f52338043f';
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();
// Greet the currently logged-in user!
echo "<p>Hello, <fb:name uid=\"$user_id\" useyou=\"false\" />!</p>";
// Print out at most 25 of the logged-in user's friends,
// using the friends.get API method
echo "<p>Friends:";
$friends = $facebook->api_client->friends_get();
$friends = array_slice($friends, 0, 25);
foreach ($friends as $friend) {
echo "<br>$friend";
}
echo "</p>";
</body>
</html>
0 Comments On This Entry
← September 2010 →
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Search My Blog
Recent Entries
-
-
-
-
การตรวจสอบอีเมล (Validate email address)on Jan 18 2010 10:04 AM
-
standard banner sizeon Dec 22 2009 03:23 PM
My Blog Links
Recent Comments
Tags
test
test
Help
Leave Comment








