TWTRComposer always shows "Tweet failed to send. Tweet not sent"

ios

#1

I created a new application, and I tried same as official document.
https://dev.twitter.com/twitterkit/ios/compose-tweets

After I logged in, when I tapped “Tweet” button,
TWTRComposer always showed “Tweet failed to send. Tweet not sent”

I am using as following.

  • TwitterCore (3.0.2) (cocoapods)
  • TwitterKit (3.2.1) (cocoapods)
  • Swift4
  • Xcode9.0.1

Log:
[TwitterKit] Composer did fail: Error Domain=TwitterAPIErrorDomain Code=261 “Request failed: forbidden (403)” UserInfo={NSLocalizedFailureReason=Twitter API error : Application cannot perform write actions. Contact Twitter Platform Operations through https://support.twitter.com/forms/platform (code 261), TWTRNetworkingStatusCode=403, NSErrorFailingURLKey=https://api.twitter.com/1.1/statuses/update.json, NSLocalizedDescription=Request failed: forbidden (403)}


#2

Hi @kaiba

You need to go to apps.twitter.com and under the permissions tab for your app, select the “Read and Write Permissions” option.


#3

Thank you very much!
My app’s status is Restricted from performing write actions.