Facebook Methods description: users.hasAppPermission

Checks whether the user has opted in to an extended application permission.

Facebook Javascript (FBJS) Code Sample: Hello World!

Following is a FBJS code sample to create a “Hello World!” program using Javascript with the Facebook specifications.
This will display a link ‘Hello World!’ that will change the color and the background randomly when clicked.
<a href=”#” onclick=”do_colors(this); return false”>Hello World!</a>
<script>
<!–
function random_int(lo, hi) {
return Math.floor((Math.random() * […]

Facebook Methods description: users.getLoggedInUser

Gets the user id (uid) associated with the current sesssion. This value should be stored for the duration of the session, to avoid unnecessary subsequent calls to this method. The same value is also returned by facebook.auth.getSession.

Facebook Methods description: users.getInfo

Returns a wide array of user-specific information for each user identifier passed, limited by the view of the current user. The current user is determined from the session_key parameter. The only storable values returned from this call are those under the affiliations element, the notes_count value, and the contents of the profile_update_time element.

Facebook Methods description: users.setStatus

Updates a user’s Facebook status. This method requires the extended permission status_update, which the user must opt into via the Extended Permissions system. You can test for this permission by checking for the error code listed below (250), or via the users.hasAppPermission method.

Facebook Methods description: photos.getTags

Returns the set of user tags on all photos specified.

Facebook PHP Error Codes Table: Full Listing

The following Facebook PHP error codes table is strangely even more complete than the one on the Facebook Wiki home page.

Facebook Methods description: photos.getAlbums

Returns metadata about all of the photo albums uploaded by the specified user. The values returned from this call are not storable.

Facebook Methods description: photos.get

Returns all visible photos according to the filters specified. This may be used to find all photos in which a user is tagged, return photos in a specific album, or to query specific pids.

Facebook Methods description: notifications.get

Returns information on outstanding Facebook notifications for current session user.