I am trying to use twitter api and getting response
{"errors":[{"message":"Bad Authentication data","code":215}]}
I am using code from twitter site I have already setup twitter account in simulator and also tried on device (also retried many times by doing log out and relog-in) but I am unable to get access granted
[self.accountStore
requestAccessToAccountsWithType:twitterAccountType
options:NULL
completion:^(BOOL granted, NSError *error) {
if (granted) {
// getting granted false i.e. I am not reaching here
}
}
So,what I need to do additionally?any comment,answer is appreciated.
Gonna answer own question,may it helps to other.
Though I am using example from twitter site https://dev.twitter.com/docs/ios/making-api-requests-slrequest It works fine except the ACAccountStore object allocation.
I just re-allocate the
ACAccountStore
wherever I require.I suggest Parse.com for better and easier implementing Twitter and Facebook integration. you can have them both with a few lines of codes and Parse does the rest.