{ "id": "139682", "key": "TIMOB-18331", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-02T04:49:19.000+0000", "created": "2014-11-13T09:26:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TCSupport" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:36:43.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": "Facebook dialog cannot set orientation to landscape mode in iOS 8.0, but on iOS 7.1 it works fine. My app is forced to landscape mode but Facebook dialog always pops up to portrait mode.\r\n\r\nh5. TEST CODE:\r\n\r\n{code} \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n orientationModes:[Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar facebook = require('facebook');\r\nfacebook.appid = 'APP_ID';\r\nfacebook.permissions = ['publish_stream', 'read_stream'];\r\n \r\nwin.add(facebook.createLoginButton({\r\n\tstyle : facebook.BUTTON_STYLE_WIDE,\r\n\tbottom : 30\r\n})); \r\n \r\nvar data = {\r\n\tlink: \"http://www.appcelerator.com\",\r\n\tname: \"Appcelerator Titanium Mobile\",\r\n\tmessage: \"Checkout this cool open source project for creating mobile apps\",\r\n\tcaption: \"Appcelerator Titanium Mobile\",\r\n\tpicture: \"http://developer.appcelerator.com/assets/img/DEV_titmobile_image.png\",\r\n\tdescription: \"You've got the ideas, now you've got the power. Titanium translates your hard won web skills into native applications...\"\r\n};\r\nfacebook.dialog(\"feed\", data, function(e) {\r\n\tif (e.success) {\r\n\t alert(\"Success! From FB: \" + e.result);\r\n\t} else {\r\n\t if (e.error) {\r\n\t alert(e.error);\r\n\t } else if (e.cancelled) {\r\n\t alert('Cancelled');\r\n\t } else {\r\n\t alert(\"Unkown result\");\r\n\t }\r\n\t }\r\n});\r\nwin.open();\r\n{code}", "attachment": [ { "id": "52547", "filename": "IMG_0165.PNG", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-11-13T09:26:42.000+0000", "size": 105427, "mimeType": "image/png" }, { "id": "54276", "filename": "loginLandscape.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T04:45:27.000+0000", "size": 77540, "mimeType": "image/png" }, { "id": "54278", "filename": "requestDialogLandscape.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T04:45:28.000+0000", "size": 108108, "mimeType": "image/png" }, { "id": "54277", "filename": "shareDialogLandscape.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T04:45:27.000+0000", "size": 82879, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Facebook dialog cannot set orientation to landscape mode in iOS 8.0", "creator": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Ti SDK 3.4.0.GA\r\nTi CLI 3.4.0\r\nTi Mobile SDK 3.4.1\r\nAppC Studio 3.4.0\r\niOS 8.0\r\nMac OS X 10.9.5", "closedSprints": [ { "id": 356, "state": "closed", "name": "2015 Sprint 05 SDK", "startDate": "2015-02-28T15:50:08.527Z", "endDate": "2015-03-14T00:00:00.000Z", "completeDate": "2015-03-14T13:54:50.695Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "336759", "author": { "name": "venisebaxter", "key": "venisebaxter", "displayName": "Venise Baxter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What's the update on this ticket?", "updateAuthor": { "name": "venisebaxter", "key": "venisebaxter", "displayName": "Venise Baxter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-17T13:47:01.000+0000", "updated": "2014-12-17T13:47:01.000+0000" }, { "id": "344511", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] can you see if this is still valid?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-27T00:47:15.000+0000", "updated": "2015-02-27T00:47:15.000+0000" }, { "id": "344742", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Latest Titanium Facebook module addresses this issue.\r\nhttps://github.com/ashcoding/titanium-facebook-module\r\nSee screenshots of dialog orientations attached.\r\n\r\nNote: When running on device with Facebook app installed, some of the dialogs will switch to the Facebook app which is permanently in portrait mode so those dialogs in particular cannot be oriented.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T04:45:28.000+0000", "updated": "2015-03-02T04:48:36.000+0000" }, { "id": "344783", "author": { "name": "venisebaxter", "key": "venisebaxter", "displayName": "Venise Baxter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] [~cng] This ticket is actually not resolved. It didn't load for us. Not sure why. ", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T15:42:13.000+0000", "updated": "2015-03-02T15:50:33.000+0000" }, { "id": "344786", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~venisebaxter] Without any information as to what versions you are testing, I cannot confirm your results.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T15:51:09.000+0000", "updated": "2015-03-02T15:51:09.000+0000" }, { "id": "344787", "author": { "name": "venisebaxter", "key": "venisebaxter", "displayName": "Venise Baxter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What versions of...? We [this|https://github.com/mokesmokes/titanium-ios-facebook/blob/master/com.facebook-iphone-3.21.10.zip] as the module to test on your latest SDK (we update everytime there are updates sent out), and it wouldn't open for us. ", "updateAuthor": { "name": "venisebaxter", "key": "venisebaxter", "displayName": "Venise Baxter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T15:55:44.000+0000", "updated": "2015-03-02T15:56:00.000+0000" }, { "id": "344855", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~venisebaxter], can you try this https://github.com/ashcoding/titanium-facebook-module instead, and look at the examples folder in the repo, to see how to present dialogs now? This module is updated with the latest Facebook SDK.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-02T22:30:22.000+0000", "updated": "2015-03-02T22:30:22.000+0000" }, { "id": "344881", "author": { "name": "dakaz", "key": "dakaz", "displayName": "Michael Kazmier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I downloaded the new Facebook module from GitHub and added it to my project. I can confirm that share and login dialogs now correctly show in Landscape view. We are using SDK 3.5.0.\r\n\r\nThanks", "updateAuthor": { "name": "dakaz", "key": "dakaz", "displayName": "Michael Kazmier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-03T00:24:33.000+0000", "updated": "2015-03-03T00:24:33.000+0000" }, { "id": "414370", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:36:43.000+0000", "updated": "2017-03-21T20:36:43.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }