[TIMOB-14205] iOS: Facebook Login Callback Not Working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2013-06-13T22:18:50.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | triage |
Reporter | Saurav Nagpal |
Assignee | Ingo Muschenetz |
Created | 2013-04-19T08:44:37.000+0000 |
Updated | 2016-05-27T12:44:51.000+0000 |
Description
*Problem description*
I have modified the Facebook integration in my app for the SDK version 3.1.0.
But Login callback for Facebook dialog is not working, it never called.
I implemented according to this API information as given below:
http://docs.appcelerator.com/titanium/latest/#!/api/Modules.Facebook
*Test case*
Attached complete sample. Simple app.js test case below.
var win = Ti.UI.createWindow({
backgroundColor : "#FFF"
});
var fb = require('facebook');
fb.appid = FACEBOOK_APP_ID; // appid goes here
fb.addEventListener('login', facebook_connect);
function facebook_connect(e) {
// Never called
}
win.add(fb.createLoginButton({
top : 50,
style : fb.BUTTON_STYLE_WIDE
}));
win.open();
Attachments
File | Date | Size |
---|---|---|
FacebookTestCase.zip | 2013-04-19T08:44:37.000+0000 | 7399775 |
Hi Saurav, Is this Android or iOS, or both? Thanks.
Hello Daniel, Sorry for late reply. It is only happen in iOS.I tested on iPhone 4 and iPhone simulator. Thanks
I'm experiencing the same issue using: * Titanium SDK 3.1.0.GA * iOS SDK 6.1 * Simulator version 6.1 I can authenticate successfully, but the login event isn't fired. However when I restart the application, the login event does fire.
cannot reproduce timob-14205 tested on iPhone sim with iOS 7 with TiSDK 3.1.1 and Facebook module version 3.1.1 .
For me it has been hit and miss. Sometimes the vent is not fired, most of the time it does. Titanium SDK 3.1.0.GA iOS SDK 6.1 Simulator version 6.1
I have tried this exact thing in my app and the event is never fired... so I do not think this jira is "resolved"... iOS 9.3.1 on device 5.2.2.GA Titanium SDK