Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Send Tweet popup appears

Tags:

ios

twitter

I added Twitter to my iOS app. I'm using iOS 5's TWTweetComposeViewController in ShareKit. It returns TWTweetComposeViewControllerResultDone. So ShareKit gets to sendDidFinish, and thinks the tweet was successful. It exits smoothly out.

Then after < 1 minute, Apple displays a message:

"Cannot Send Tweet"

"The tweet, "blah blah blah" cannot be sent because the connection to Twitter failed."

I'm in China, and I turned off the VPN, so technically the message is correct. However, how do I know that I'm going to get this message? How do I know if the tweet is finally posted? that way I can keep the "loading" icon still rotating in the background. Is there a notification message that I can listen for?

Thank you

like image 907
Lisa Avatar asked Mar 23 '12 10:03

Lisa


People also ask

Why can't I send a Tweet on Twitter?

Trouble sending Tweets can often be attributed to a need to upgrade your browser or app. If you're having trouble Tweeting via the web, make sure you're using the latest version of your browser. If you can't Tweet with an official Twitter app, check to make sure you've downloaded any available updates.

Why are my tweets failing to send?

Twitter's installation files could've gotten corrupted, and the only way to fix it is by reinstalling the app. On Android, you can reinstall Twitter by doing the steps below. First, unlock your device and find the Twitter app from your app drawer. After that, tap and hold Twitter's app icon to open the selection menu.

Why is Twitter saying I have a notification?

You can receive notifications when your Tweets or Retweets are Retweeted or liked, when you are mentioned in a Tweet, if you are followed by someone new, or when someone from your contacts joins Twitter. These are collected on your Notifications page.

How long do Twitter restrictions last?

When an account is in read-only mode, others will still be able to see and engage with the account. The duration of this enforcement action can range from 12 hours to 7 days, depending on the nature of the violation.


1 Answers

Don't know if this is related, but in simply trying to send a tweet today via Safari on the iphone I got the "Cannot Send Tweet" message. Some experimentation revealed that the tweet was too long. The tweet contained a link, which Twitter automatically shortens and calculates for in the amount of characters left that it displays for your tweet.

Looks like Apple is calculating this incorrectly, because although my tweet showed 3 characters remaining in Safari's tweet bubble pop-up, when I pasted the same information into the iphone Tweeter app, it was over the limit. Once shortened it posted fine from Safari.

So I would say Elissa Tong is right - "Apple's Twitter framework is missing additional error checks and notification messages."

like image 164
christopher Avatar answered Sep 22 '22 16:09

christopher