Hi, I'm currently developing an app that needs to be connected to Facebook all the time. So, first thing i do is set my appid, my permissions, and then i call Ti.Facebook.authorize.
Notice that i don't need a login/logout button - i just need to check if the user's is logged in, and if it's not - i call the "facebook login screen". Of course i have a "Logoff" button on my app, in case the user wants to change his logged account. But for that case i have an EventListener that call Ti.Facebook.authorize again.. so if the user has logged out, the app would redirect him again to the Facebook Default Login Screen.
What i want to know is.. is there an "alternative" simpler facebook login screen? The default one i get is the facebook's default - with the textfields for login and password, the button "Log In", but besides that i get "Forgot password?" , "Trouble logging in? Try the alternative login", "Need a facebook account? Sign up here", "Help Center", etc.
Isn't there a way to show only the two textfields and the LogIn button?
I didn't want to create an interface just to do this. I have a TabBar (with 4 tabs) and the whole idea is that i won't need a tab just for Login/Logout.. instead i'd check and just authorize/prompt the user to login if it's necessary - and it works. But i'd love if there was a "simpler" facebook screen with just the necessary info. . Currently i'm just doing this:
function CheckFacebook() { //facebook access Ti.Facebook.appid = 'xxxxx'; Ti.Facebook.permissions = ['publish_stream','publish_checkins']; Ti.Facebook.authorize(); }
Thanks in advance
1 Answer
Check out the Facebook-example in the KitchenSink of Appcelerator (https://github.com/appcelerator/KitchenSink) and also the documentation (http://docs.appcelerator.com/titanium/2.0/#!/api/Titanium.Facebook)
Your Answer
Think you can help? Login to answer this question!