Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14205] iOS: Facebook Login Callback Not Working

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionCannot Reproduce
Resolution Date2013-06-13T22:18:50.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelstriage
ReporterSaurav Nagpal
AssigneeIngo Muschenetz
Created2013-04-19T08:44:37.000+0000
Updated2016-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

FileDateSize
FacebookTestCase.zip2013-04-19T08:44:37.000+00007399775

Comments

  1. Daniel Sefton 2013-05-10

    Hi Saurav, Is this Android or iOS, or both? Thanks.
  2. Saurav Nagpal 2013-05-30

    Hello Daniel, Sorry for late reply. It is only happen in iOS.I tested on iPhone 4 and iPhone simulator. Thanks
  3. Robbert van 't Westende 2013-06-04

    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.
  4. Sabil Rahim 2013-06-13

    cannot reproduce timob-14205 tested on iPhone sim with iOS 7 with TiSDK 3.1.1 and Facebook module version 3.1.1 .
  5. Timan Rebel 2013-06-18

    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
  6. Mark Mokryn 2013-06-18

  7. Emil Nilimaa 2016-05-27

    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

JSON Source