How can I check that I can make a TWRequest on Twitter for iOS5 since I don’t have an access token in place? With the regular twitter REST API using frameworks such as MGTwitterEngine we can do a check for the access token.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need it. In iOS5 you just need to put the username and pwd in iOS settings. You just need to use the
TWTweetComposeViewControllerand manage its callback block (completitionHandler) correctly. In the block you receive statuses about the operation.If need to know if you can send tweet just use the class method
+ (BOOL)canSendTweetof the classTWTweetComposeViewController.If you need more control you can use the
TWRequestinstead of theTWTweetComposeViewController.Check here: https://developer.apple.com/library/ios/#documentation/Twitter/Reference/TwitterFrameworkReference/_index.html