Project: titanium
Issue TIMOB-8127: iOS: You can't call the Facebook Authorization from a Dialog (not even with app events)
h4. Problem Description Customer adds a Facebook.authorize(); from an app, without any results. h4. Actual Results The function never goes and logs into facebook. h4. Expected results The app should be able to login into fb h4. Test Case 1. Create a new mobile project 2. Add the code in the example to a button 3. Run it {code} wishToShareViaFacebook.addEventListener('click', function(e){ if (e.index == 0) { if (Titanium.Facebook.loggedIn) { var data = { link: "www.jokwear.com", name: "Great Apparel, Great Message", message: "Check out JokWear!", caption: "Follow your favourite athletes, support other athletes", picture: "http://jokwear.com/images/joklogo.gif", description: "JokWear is a clothing brand that not only touts excellent fabric but also a social movement that you can achieve anything you set your mind to.", test: [ {foo:'Encoding test', bar:'Durp durp'}, 'test' ] }; Titanium.Facebook.requestWithGraphPath('me/feed', data, 'POST', showRequestResult); } else { Titanium.Facebook.authorize(); } } }); {code} h4. Extra info There is a bug where platform didn't want to launch the FB authorize from a dialog, since it's bad practice to get a dialog from a dialog. So, we recommended the customer to add an app event catching this, closing the dialog and then adding the other dialog. It's not runnning. The customer creates a small function doing a setTimeout, and that way, the function it's called properly within the if.
Story points: 1