Skip to content

gajus/falbum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Photo Upload plugin

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.
});

About

UI to select a photo from Facebook photo album.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published