FB

Description

Top-level namespace for major public methods.

Methods

addFriend(String id,  Function cb)

Prompt the user to add the given id as a friend.

api(Object params,  Function cb)

Once you have a session for the current user, you will want to access data about that user, such as getting their name & profile picture, friends lists or upcoming events they will be attending.

getLoginStatus(Function cb,  Boolean force)

Find out the current status from the server, and get a session if the user is connected.

getSession()

Accessor for the current Session.

init(Object opts)

Initialize the library.

login(Function cb,  String perms)

Login/Authorize/Permissions.

logout(Function cb)

Logout the user in the background.

publish(Object post,  Function cb)

Publish a post to the stream.

share(String u,  String title)

Sharing is the light weight way of distributing your content.