Topic-icon fail code 186 auto post twitter

Active Subscriptions:

None
7 years 9 months ago #58855 by militansi
how to solve the error code 186 when auto post on twitter
the error is "Fail - Code 186 received with message: Status is over 140 characters"
The topic has been locked.
Support Specialist
7 years 9 months ago #58860 by mel
Replied by mel on topic fail code 186 auto post twitter
Are you using the manual or auto-posting for Twitter? Looking at the code, we attempt to limit the message to 140 characters. I'll need more details to try to reproduce this.
The topic has been locked.
Active Subscriptions:

None
7 years 8 months ago #58920 by militansi
i using autopost on twitter..how to setup
The topic has been locked.
Support Specialist
7 years 8 months ago #58925 by alzander
As Melissa noted, we automatically truncate any messages posted to Twitter to 140 characters, including the t.co shortened URL that Twitter will generate for links. Can you post a URL that is having this issue so we can investigate further what may be happening?

It also may be related to your other post about non-SEO URLs being used . We may need to resolve that problem first.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
7 years 8 months ago #58927 by militansi
this is history klikanggaran.com autopost for url klikanggaran.com/index.php?option=com_co...view=article&id=1286

File Attachment:


in facebook autopost using same URL klikanggaran.com/index.php?option=com_co...view=article&id=1286 to check in here www.facebook.com/page.klikanggaran/

File Attachment:


but the real URL is SEO Friendly in Titlehere
File Attachment:


thanks for your support
The topic has been locked.
Support Specialist
7 years 8 months ago #58950 by alzander
I'm unsure why that error is being reported. It's not something we've seen before. It could be a character encoding issue or another URL inserted into the post or something like that. Here's what I'd recommend to try and diagnose things:

Please edit the /components/com_jfbconnect/provider/twitter/channel/stream.php file. At line 100, you'll see:
$status = substr($message, 0, 140 - $urlLength - 1) . " " . $link;
Change the 140 to a much smaller number, like 100 and test again to see if it works. If not, try a really small number like 50. At some point, if it works, post the full tweet that was made.

If it still doesn't work at 50, then we'll need to investigate more on-site. Could you please Private Message us admin and FTP credentials for your site so we can make minor modifications to the code to diagnose things further. You can PM us by clicking the mail icon under my name to the left.

Thanks,
Alex
The topic has been locked.