Created
January 31, 2013 16:43
-
-
Save tuki0918/4684222 to your computer and use it in GitHub Desktop.
Titanium Mobile Facebook Oauth認証
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
Ti.UI.setBackgroundColor('#fff'); | |
Ti.Facebook.forceDialogAuth = false; | |
Ti.Facebook.appid = '【App ID】'; | |
Ti.Facebook.permissions = ['publish_stream']; | |
var win = Ti.UI.createWindow({ title: 'TiFbOauth', tabBarHidden: true }); | |
var fbLoginBtn = Ti.Facebook.createLoginButton(); | |
win.add(fbLoginBtn); | |
var tabGroup = Ti.UI.createTabGroup(); | |
var tab = Ti.UI.createTab({ window: win }); | |
tabGroup.addTab(tab); | |
tabGroup.open(); | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="ti.facebook.appid">【App ID】</property> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment