Hi, I am having big trouble integrating newest facebook module 4.0.0 from GitHub. I copied it into /Library/Application Support/Titanium/modules just where the older versions reside (3.2.0 and 3.1.1), but when I am going to the module properties in titanium, the new version number just does not show up. I also integrated them directly into a test project, no success.
I uploaded the complete project to: http://download.sabov.de/test.zip
The main code in the project is
var facebook = require('facebook'); facebook.appid = 1455001824784603; facebook.permissions = ['read_stream','email','user_friends']; facebook.addEventListener('login', function(e) { console.log('facebook login event'); if (e.success) { alert("Logged into Facebook"); } else if (e.error) { alert("Error = " + e.error); } else if (e.cancelled) { alert("Canceld"); } } ); $.window.fbProxy = facebook.createActivityWorker({lifecycleContainer: $.window}); $.index.open(); facebook.initialize(1000); // after you set up login/logout listeners and permissions facebook.authorize();What I want to do is that the code asks for login first time it is run, but the second time is logs in silently and just calls the login event. Will this work with this code?
Also for Android setup, which data do I need to fill out on facebook server?
Google Play Package Name? I guess this one is required Class Name? Is it required? Is it com.facebook.LoginActivity? Key Hashes? Is it required?