mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
First version
This commit is contained in:
1 parent
78f213ddfb
commit
70859516bb
1 file changed
+30
@@ -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