kukuh tw develop facebook application

Post on 17-May-2015

2.576 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Develop Facebook ApplicationFacebook Developer Garage Indonesia

Jakarta , March 28, 2009

Kukuh TW - Web and Mobile Application Freelance Developer

kukuhtw@gmail.com

3 methods to build facebook’s application

• Third Party• Iframe• FBML (Facebook MarkUp Language)

Third Party’s Application

• Make a Quiz (http://apps.facebook.com/makeaquiz/)

Third Party’s Application

• Gift Creator (http://apps.facebook.com/giftcreator )

Iframe• Iframe is infline frame. HTML element which makes it possible

to embed an HTML document inside another HTML document.

source : http://BalihotelMap.com http://apps.facebook.com/balihotelmap

FBML• Facebook Markup

Language http://wiki.developers.facebook.com/index.php/FBML

• enables you to build full Facebook Platform applications that deeply integrate into a user's Facebook experience. You can hook into several Facebook integration points, including the profile, profile actions, Facebook canvas, News Feed and Mini-Feed.

http://www.facebook.com/apps/

Study Case • Making Facebook’s Application for Update

Status Facebook Via Kronologger.com

• Go to facebook.com/developers

• Download Facebook php client library, and install on your server

• http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz

• Or just go to http://developers.facebook.com/get_started.php

Upload php client library on your server , create folder http://yoruservername.com/yourfacebookfolder

• To update status via your application, you should set permission for user– 1. Status update as True– 2. Offline Access as True

$facebook = new Facebook($appapikey, $appsecret);$facebook->set_user($user, $session);$facebook->api_client->call_method('facebook.users.setStatus', array('api_key' => $appapikey,'uid'=>"$user",'status'=>$messages_posting));

Snippet code for update status

Status_update

if (!$facebook->api_client->users_hasAppPermission("status_update")){ echo '<fb:prompt-permission perms="status_update" next_fbjs="greet()">Let us update your status from this application</fb:prompt-permission>'; // your code here if current status update is false

} else {

// your code here if current status update is true}

Offline_access//offline_accessif (!$facebook->api_client->users_hasAppPermission("offline_access")){ echo '<fb:prompt-permission perms="offline_access" next_fbjs="greet_oa()">Let us

update your status (offline access) from this application</fb:prompt-permission>'; // your code here if current offline access is false }else {// your code here if current offline access is true}

Install Application at http://apps.facebook.com/statuskronologger

By using offline access, you can post / update status via SMS and the result will displayed on your facebook’s update status

You can send sms in Kronologger by using Flexi, Indosat, Telkomsel and Esia

For Flexi User : Send to 1001 and post anything you want, it will appeared on your facebook’s update status. More info see

http://kronologger.wordpress.com/

Thank You !

top related