[TIMOB-18331] iOS: Facebook dialog cannot set orientation to landscape mode in iOS 8.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-03-02T04:49:19.000+0000 |
Affected Version/s | Release 3.4.1 |
Fix Version/s | Release 4.1.0 |
Components | iOS |
Labels | TCSupport |
Reporter | Harish Mridha |
Assignee | Eric Merriman |
Created | 2014-11-13T09:26:42.000+0000 |
Updated | 2017-03-21T20:36:43.000+0000 |
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.
TEST CODE:
var win = Ti.UI.createWindow({
backgroundColor:'#fff',
orientationModes:[Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]
});
var facebook = require('facebook');
facebook.appid = 'APP_ID';
facebook.permissions = ['publish_stream', 'read_stream'];
win.add(facebook.createLoginButton({
style : facebook.BUTTON_STYLE_WIDE,
bottom : 30
}));
var data = {
link: "http://www.appcelerator.com",
name: "Appcelerator Titanium Mobile",
message: "Checkout this cool open source project for creating mobile apps",
caption: "Appcelerator Titanium Mobile",
picture: "http://developer.appcelerator.com/assets/img/DEV_titmobile_image.png",
description: "You've got the ideas, now you've got the power. Titanium translates your hard won web skills into native applications..."
};
facebook.dialog("feed", data, function(e) {
if (e.success) {
alert("Success! From FB: " + e.result);
} else {
if (e.error) {
alert(e.error);
} else if (e.cancelled) {
alert('Cancelled');
} else {
alert("Unkown result");
}
}
});
win.open();
Attachments
File | Date | Size |
---|---|---|
IMG_0165.PNG | 2014-11-13T09:26:42.000+0000 | 105427 |
loginLandscape.png | 2015-03-02T04:45:27.000+0000 | 77540 |
requestDialogLandscape.png | 2015-03-02T04:45:28.000+0000 | 108108 |
shareDialogLandscape.png | 2015-03-02T04:45:27.000+0000 | 82879 |
What's the update on this ticket?
[~cng] can you see if this is still valid?
Latest Titanium Facebook module addresses this issue. https://github.com/ashcoding/titanium-facebook-module See screenshots of dialog orientations attached. Note: 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.
[~ingo] [~cng] This ticket is actually not resolved. It didn't load for us. Not sure why.
[~venisebaxter] Without any information as to what versions you are testing, I cannot confirm your results.
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.
[~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.
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. Thanks
Closing ticket as fixed.