gajus/falbum

UI to select a photo from Facebook photo album.

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2014-03-26 08:34 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:36:07 UTC


README

Demonstration. Note that demonstration does not actually upload any files. However, the PHP files have all of the logic written down. It is up to you to issue an XHR request to the PHP script to initiate the uploading to the server.

Screenshot

Usage

The script will automatically make sure that user is authorised with the required permissions (namely, user_photos).

$.gajus.falbum({callback: function(r) {
	if (!r) {
		// User did not select any photo.
	} else if(r.url) {
		// Url of the selected photo.
	} else if (r.error) {
		// Error object containing the error.code and error.message.
	}
},
	loader: $('#your-loader'), // Optional. jQuery reference to the element that will be displayed when the script is loading (XHR requestss, etc.).
	debug: false // Optional. Allows to track (console.) script activity.
});