Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12737] iOS: Ti.Facebook is undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-03-19T18:18:31.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsregression
ReporterAlexander Frischbutter
AssigneeShak Hossain
Created2013-02-10T12:54:39.000+0000
Updated2017-03-20T20:42:56.000+0000

Description

*Problem description* The Ti.Facebook namespace is undefined. See test case and log. *Note* Occurs in recent master builds, but not 3.1.0.v20130128172329. *Test case*
alert(typeof(Ti.Facebook));
// undefined	
Ti.Facebook.appid = '286864348084011';
*Log*
= "#0 ApplicationWindow() at .../app.js:36";
[TRACE] :      line = 71;
[TRACE] :      message = "'undefined' is not an object (evaluating 'Ti.Facebook.appid = '....'')";
[ERROR] :  ;
[ERROR] :      sourceId = 313881536;
[ERROR] :      sourceURL = "..../ui/common/FirstView.js";
[ERROR] :  }

Attachments

FileDateSize
Bildschirmfoto 2013-02-10 um 13.54.02.png2013-02-10T12:54:39.000+000060344

Comments

  1. Alexander Frischbutter 2013-02-14

    I tested it on Android, works fine there. So only iOS Problem. 3.1.0.v20130213171032
  2. Daniel Sefton 2013-02-14

    Interesting. I tested it on 3.1.0.v20130213152602 iOS 6 simulator and can also reproduce this. However, on my slightly earlier build 3.1.0.v20130128172329 the problem is not there. So this is clearly a regression.
  3. Vishal Duggal 2013-03-14

    Facebook moved to its own module. The module will be shipped as part of 3.1.0 SDK. KS master branch has already been updated to reflect this. Ti.Facebook is now require('facebook') on iOS and Android.
  4. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source