gajus/falbum

用户界面,用于从Facebook相册中选择照片。

安装: 8

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

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

This package is not auto-updated.

Last update: 2024-09-14 16:03:12 UTC


README

演示。注意,演示实际上不会上传任何文件。然而,PHP文件中已经写下了所有逻辑。您需要向PHP脚本发起XHR请求以启动上传到服务器。

Screenshot

用法

脚本将自动确保用户已获得所需的权限(即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.
});