mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
First version
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user