small medium large xlarge

14 Jan 2014, 13:32
Jens Reynders (1 post)

When trying to access your twitter accounts it is possible your not getting any access and the Twitter authentication results in a “Bad Authentication data”. This can be solved by requesting access to the twitter accounts on the iPhone. You do this by placing following code before you’re accessing the twitter accounts.

[self.accountStore requestAccessToAccountsWithType:twitterAccountType options:nil completion:^(BOOL granted, NSError *error){
       if (granted) {