Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS Facebook API don't bring up the iPhone settings like Tweeter
    primarykey
    data
    text
    <p>I'm using <a href="https://github.com/sakrist/FacebookSample" rel="nofollow noreferrer">DEFacebookComposeViewController</a> for post a message in Facebook. When using iOS5 the user is redirected to the facebook page for login and then go back to the app, that works nice. But, in iOS6 the Service API show a UIAlertView that show the options "Settings" or "Cancel"</p> <p><img src="https://i.stack.imgur.com/j9Xpr.png" alt="enter image description here"></p> <p>The problem is that bot buttons have the same effect. Both cancel the dialog (it's also happend in the 'FacebookSample' <a href="https://github.com/sakrist/FacebookSample" rel="nofollow noreferrer">here</a>).</p> <p>In the other hand, the Tweeter framework woks fine in both iOS 5 and 6. The alerts appears if there is no tweeter account configured and the "Settings" button brings you to the "Add Account" screen.</p> <p>All ideas are welcome.</p> <p>Thanks</p> <p>PD: all test where in the simulator.</p> <p><em>Edit:</em></p> <p>This is the code that I'm using:</p> <pre><code>DEFacebookComposeViewController *facebookComposer = [[DEFacebookComposeViewController alloc] init]; [facebookComposer setInitialText:@"Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test"]; __block id weakSelf = self; [facebookComposer setCompletionHandler:^(DEFacebookComposeViewControllerResult result) { [weakSelf dismissModalViewControllerAnimated:YES]; }]; [self presentModalViewController:facebookComposer animated:YES]; [facebookComposer release]; </code></pre> <p>And this is the important part in the <code>DEFacebookComposeViewController</code> class;</p> <pre><code>- (id)init { if ([[UIDevice currentDevice].systemVersion floatValue] &gt;= 6) { self = [(DEFacebookComposeViewController*)[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook] retain]; return self; } self = [super init]; if (self) { [self facebookComposeViewControllerInit]; } return self; } </code></pre> <p>There. If the iOS version is 6 the init method return <code>[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]</code> wich is the vanilla iOS6 way of interact with facebook.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload