Rabu, 22 Juni 2011

how to make the application on facebook within 5 minutes


Maybe you've seen the status of your facebook friends who send status via a public telephone, telephone kiosk, blackberry, etc.. It did not take long to make the application, we just start.

1. visit http://www.facebook.com/developers/createapp.php
2. after that then you will be sent to a page to setup your application name
 3. Next you'll be given the API Key and Secret. this is what servesas the key to linking your application with Facebook.
    

4. After that go to the canvas page by clicking the menu beside
    

5. Enter the name of your application and your application url
    

NEXT Make the file index.php and enter the code below

  1.   
  2. include_once("facebookapi/facebook.php");  
  3.   
  4. // Get these from http://developers.facebook.com  
  5. $api_key = 'API KEY';  
  6. $secret  = 'API SECRET';  
  7.   
  8. $facebook = new Facebook($api_key,$secret,true);  
  9.   
  10. $user = $facebook->require_login();  
  11. $session_key = $facebook->api_client->session_key;  
  12. $facebook->api_client->set_user($user,$session_key);  
  13.   
  14. echo 'Hello world from facebook';  
  15. ?>  
then upload to your hosting.

Tidak ada komentar:

Posting Komentar