lightbulb-phpxperts2011 2011-rinku.arnob

14
Facebook App Dev. using LightBulb

Upload: rinkuarnob

Post on 05-Dec-2014

977 views

Category:

Economy & Finance


0 download

DESCRIPTION

Facebook App Dev. using LightBulb

TRANSCRIPT

Page 1: Lightbulb-phpXperts2011 2011-rinku.arnob

Facebook App Dev. using LightBulb

Page 2: Lightbulb-phpXperts2011 2011-rinku.arnob

Traditional FB AppX/FBML

FBJS

FQL

OpenGraph

SDKsJS/PHP/iOS/RUBY/PYTHON

Page 3: Lightbulb-phpXperts2011 2011-rinku.arnob

PROBLEMS

Steep Learning Curve

Lack of Documentation

Lack of Official Support

Fatal Changes Overnight

Page 4: Lightbulb-phpXperts2011 2011-rinku.arnob

LightBulb in ActionoAuth 2.0 Ready

Wrapper of OpenGraph, JS-SDK and Social Plugins

Helper FunctionsUpload Image

Upload Video

Upload Audio

Page 5: Lightbulb-phpXperts2011 2011-rinku.arnob

Painful WayExample of traditional FB Login using jS-SDK

Page 6: Lightbulb-phpXperts2011 2011-rinku.arnob

LightBulb Way$.LightBulb({

apikey:"288048857874241",

permissions:'publish_stream, email',

callback:function(data) {}

});

Page 7: Lightbulb-phpXperts2011 2011-rinku.arnob

Fetching UserData$.LightBulb({

apikey:"288048857874241",

permissions:'publish_stream, email',

callback:function(data) {

var userDetails = LightBulb._getFacebookData();

alert(“Your Facebook user id is " + userDetails.facebookUserId);

}

});

Page 8: Lightbulb-phpXperts2011 2011-rinku.arnob

New permission$.LightBulb({

apikey:"288048857874241",

permissions:"manage_pages",

forcedPermission:true,

callback:function(data) {}

});

Page 9: Lightbulb-phpXperts2011 2011-rinku.arnob

Publish Feed

$.LightBulb.dialogs.publishFeed

(“me”, “me”, "My feed", "My Caption”,

"http://leevio.com", "My Description", "", "", "", "",

function(response) {console.log(response);

});

Page 10: Lightbulb-phpXperts2011 2011-rinku.arnob

Publish Feed

Page 11: Lightbulb-phpXperts2011 2011-rinku.arnob

Supported ObjectsFeeds

Pictures & Albums

Videos

Actions Like/Dislike

Delete

Events

Links

Comments

User and Friends

Social Plugins

Groups

Notes

PagesTabs

Wall

Questions

Applications

Page 12: Lightbulb-phpXperts2011 2011-rinku.arnob

Why LightBulb

Painless

Adaptive and High Compatibility

Well Maintained

Short Learning Curve

Page 13: Lightbulb-phpXperts2011 2011-rinku.arnob

Project LightBulb

Hasin Hayder.

M A Hossain Tonu.

Nhm Thanveer Hossain Khan.

Shidur Rahaman.

LightBulb Download Link: https://github.com/hasinhayder/LightBulb

Page 14: Lightbulb-phpXperts2011 2011-rinku.arnob

Thanks You

Md. Alamgir Hossain (rinku.arnob). Work with LEEVIO team