First version

This commit is contained in:
Pavel Zika
2014-04-15 13:20:24 +02:00
parent 78f213ddfb
commit 70859516bb
+30
View File
@@ -0,0 +1,30 @@
hello.init(
{
'facebook': '<app key>',
},
{
redirect_uri: 'hello.html',
display: 'page',
}
);
hello('facebook').login();
hello('facebook').logout();
hello.on('auth.login', auth => {
alert('log to ' + auth.network)
}).on('auth.logout', auth => {
alert('unlog from ' + auth.network)
});
hello.getAuthResponse('facebook');
hello.login('facebook', null, () => {
var req = hello.getAuthResponse('facebook');
});
hello.logout('facebook');
var serviceInfo = hello.service('facebook');