[TIMOB-12737] iOS: Ti.Facebook is undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-03-19T18:18:31.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | regression |
Reporter | Alexander Frischbutter |
Assignee | Shak Hossain |
Created | 2013-02-10T12:54:39.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
Bildschirmfoto 2013-02-10 um 13.54.02.png | 2013-02-10T12:54:39.000+0000 | 60344 |
I tested it on Android, works fine there. So only iOS Problem.
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.
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.
Closing ticket as invalid.