-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot post tweet with a link #42
Comments
The linkify method is for output only. You need to check the length of $status before posting. |
OK. I tried it. It just posts the url as text though. |
What I do is simple : $status = 'My status';
$status = substr($tweet, 0, 119).' '.$url;
Twitter::postTweet(['status' => $status]); |
Okay. I'll give that a try. |
Thanks. It works now. |
Hey Akash,
I following the suggestion from Thujohn;
```
$status = 'My status';$status = substr($tweet, 0, 119).'
'.$url;Twitter::postTweet(['status' => $status]);
```
i.e. setting a suitable limit for the string
|
Thanks for your reply. It's working. I was sending the localhost virtual URL which doesn't work on Twitter. Replaced it with the remote URL and everything's working and Great library indeed. |
No worries. Happens to the best of us! |
Not sure what is happening. No matter the length of the url or tweet message itself, it results in error 186 : Status is over 140 characters.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: