Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18331] iOS: Facebook dialog cannot set orientation to landscape mode in iOS 8.0

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-03-02T04:49:19.000+0000
Affected Version/sRelease 3.4.1
Fix Version/sRelease 4.1.0
ComponentsiOS
LabelsTCSupport
ReporterHarish Mridha
AssigneeEric Merriman
Created2014-11-13T09:26:42.000+0000
Updated2017-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

FileDateSize
IMG_0165.PNG2014-11-13T09:26:42.000+0000105427
loginLandscape.png2015-03-02T04:45:27.000+000077540
requestDialogLandscape.png2015-03-02T04:45:28.000+0000108108
shareDialogLandscape.png2015-03-02T04:45:27.000+000082879

Comments

  1. Venise Baxter 2014-12-17

    What's the update on this ticket?
  2. Ingo Muschenetz 2015-02-27

    [~cng] can you see if this is still valid?
  3. Chee Kiat Ng 2015-03-02

    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.
  4. Venise Baxter 2015-03-02

    [~ingo] [~cng] This ticket is actually not resolved. It didn't load for us. Not sure why.
  5. Ingo Muschenetz 2015-03-02

    [~venisebaxter] Without any information as to what versions you are testing, I cannot confirm your results.
  6. Venise Baxter 2015-03-02

    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.
  7. Chee Kiat Ng 2015-03-02

    [~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.
  8. Michael Kazmier 2015-03-03

    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
  9. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source