{ "id": "63843", "key": "TIMOB-3211", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11256", "description": "", "name": "Sprint-2011-08", "archived": true, "released": true, "releaseDate": "2011-02-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:11.000+0000", "created": "2011-04-15T03:39:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "facebook", "ios", "release-1.6.1", "release-1.7.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:01:11.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
When you restrict Safari and authorize() or us the facebook\nbutton, everything seems to work properly but loggedIn is never\ntrue and the facebook button never changes to 'logout'
\nStep 0: restrict Safari via\n(Settings>General>Restrictions)
\nStep 1: install app
\nStep 2: click the 'loggedIn' button
\nStep 3: Label says false
\nStep 4: click 'authorize()' or Facebook button and login
\nStep 5: notice FB button still says Login
\nStep 6: click the 'loggedIn' button
\nStep 7: Label says false
\nvar win = Titanium.UI.createWindow({ \n backgroundColor:'#fff'\n});\n\nTitanium.Facebook.appid = '187692147928682';\nTitanium.Facebook.permissions = ['publish_stream'];\n\nvar statusLabel = Ti.UI.createLabel({\n text: 'click status',\n top: 0,\n width: 300,\n height: 60\n});\n\nvar statusButton = Titanium.UI.createButton({\n title: 'loggedIn',\n bottom: 300,\n width: 300,\n height: 60\n});\nstatusButton.addEventListener('click', function(e) {\n Ti.API.info('Facebook loggedIn: '+Ti.Facebook.loggedIn);\n statusLabel.text = 'Facebook loggedIn: '+Ti.Facebook.loggedIn;\n});\n\nvar fbAuthButton = Titanium.UI.createButton({\n title: 'authorize()',\n bottom: 100,\n width: 300,\n height: 60\n});\nfbAuthButton.addEventListener('click', function(e) {\n Titanium.Facebook.authorize();\n});\n\nvar fbButton = Titanium.Facebook.createLoginButton({\n 'style': 'wide',\n 'sessionProxy': 'http://api.appcelerator.net/p/fbconnect/',\n bottom: 50,\n height: 30,\n width: 300\n});\n\nwin.add(statusLabel);\nwin.add(statusButton);\nwin.add(fbAuthButton);\nwin.add(fbButton);\nwin.open();
\n
\nTiSDK 1.6.0GA, iOS 4.2.1, iPhone4
\nYou will need to copy Info.plist to the root dir of your project\nand You’ll need to edit the CFBundleURLSchemes array to\ninclude the URL that Facebook uses to restart your app after login\nis completed:
\n\n <key>CFBundleURLSchemes</key>\n <array>\n ... OTHER URL SCHEMES HERE ...\n <string>fb187692147928682</string>\n </array>
\n
Unable to duplicate outside Titanium as an Apple bug. But filed\na bug with facebook: http://bugs.developers.facebook.net/show_bug.cgi?id=15427
(from [5c7aa560eeb4f35ae3765e1c1aca4112f796e8b7])\n[#3211 state:fixed-in-qa] Patched the Facebook\niOS SDK to properly handle redirects to the app requesting\nauthorization. \nhttps://github.com/appcelerator/titanium_mobile/commit/5c7aa560eeb4...
[INFO] Titanium SDK version: 1.7.0 (02/25/11\n08:42 8a239f5) iphone 4 (4.2.1), more testing needed before\nclosing
(from [166e80359cd31faf017680ad4a20d9fc0e5a0e30])\n[#3211 state:fixed-in-qa] Patched the Facebook\niOS SDK to properly handle redirects to the app requesting\nauthorization. \nhttps://github.com/appcelerator/titanium_mobile/commit/166e80359cd3...
fix looks good on 4.01-4.2.1, but still seeing the bad behavior\n(fb button not reflecting log in status) on 3.1.3
(from [e7e8f673a79528456cec1493e0013f0db884bc6f])\n[#3211] Fix for 3.1.x login auth. \nhttps://github.com/appcelerator/titanium_mobile/commit/e7e8f673a795...
(from [547be3825a21e9572a55452d86892e0f4cbfff0d])\n[#3211] Fix for 3.1.x login auth. \nhttps://github.com/appcelerator/titanium_mobile/commit/547be3825a21...
Tested with Titanium SDK version: 1.7.0 (03/02/11 13:57\n5d8c78a)
\niPhone 3g 3.1.2
\niPhone 4 4.2.1
This was fixed after 1_6_1_GA so changed release tag to\nrelease-1.6.1 and added release-1.7.0