Topic-icon twitter not posting image from site

Active Subscriptions:

None
7 years 10 months ago #58604 by waminua
Hi
I have already tried to solve this problem with you in this topic www.sourcecoast.com/forums/jfbconnect/jf...play-card-on-twitter
But until now, the problem has not been resolved. twitter not publish image from the site

I noticed that the problem only occurs with the images from the component K2. They are stored in a folder ...DOMAIN/media/k2/items/cache/ (the folder access rights from 755, 644 in the image).
If the article has a pasted image (not from the component K2), and there is no image of K2, then everything is working correctly. For example here: gazeta-nedelya.info/news/item/4687-realno-li-preodolet-khaos

Apparently, the problem in the K2. But how to fix it, I do not know.

Prompt, in what direction to seek a solution to this problem.
The topic has been locked.
Support Specialist
7 years 10 months ago #58609 by alzander
I just looked at your Twitter feed and found this Tweet:
Invalid consumer key/secret in configuration

That tweet has no image. It links to the following page:
gazeta-nedelya.info/index.php?option=com_k2&view=item&id=5151

The Twitter image specified on that page is:
gazeta-nedelya.info/media/k2/items/cache...4cdffa435f27c_XL.jpg

Your site's robots.txt file is specifically excluding the /media directory, so that bots can't scan those directories. Since Twitter uses a bot, it's obeying the robots.txt file and will not fetch that content. I'd recommend updating your robots.txt file to remove the /media restriction. Then, you'll have to wait a few days for Twitter to re-fetch the robots file and hopefully start using your images.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
7 years 10 months ago #58619 by waminua
Thanks!
The problem has been in the robots.txt file.
Now everything is working correctly.
The topic has been locked.
Support Specialist
7 years 10 months ago #58627 by mel
Glad that helped resolve the issue. Let us know if you run into any further problems.

-Melissa
The topic has been locked.