Image sharing

Posted in: Newspaper
Post count: 5

I have the problem is that there’s no picture when you share a post on Facebook. When I try to debug it ,image link follows to 404 error page.

Post count: 23312

Hello artak1985,

Ensure that you have Open Graph tags on your post page if you want to achieve good results when you share a post on Facebook. Notice that our theme does not have any such a control for this section but you should use the Seo Yoast plugin because this one will allow you to edit this section. Check the plugin’s documentation from here -> https://forum.tagdiv.com/facebook-share/ -> https://kb.yoast.com/kb/custom-open-graph-tags/

Thanks for your understanding!

Post count: 5

I use this program but the results are the same. Pictures link follows to 404 error instead of losarmnews.com

Post count: 20688

Seems the images from the uploads folder cannot be accessed, for example the image used on this post featured image
http://losarmnews.com/los-angeles/2018/01/4058/
http://losarmnews.com/wp-content/uploads/2018/01/val.jpg
Facebook is unable to get this image
https://www.screencast.com/t/djrPmFOn
This could be caused by htaccess configuration or plugins (security plugins maybe). You could try changing the permalink structure in WordPress settings as well, use a different format and test again with the debugger
https://developers.facebook.com/tools/debug/

Post count: 5

I also change permalinks from category/postname to category/year/month/postid, but the problem was not solved.

Post count: 5

this is the code in my htaccess file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# Wordfence WAF
<Files “.user.ini”>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
RewriteCond %{HTTP_REFERER} !^http://losarmnews.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://losarmnews.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.losarmnews.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.losarmnews.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://losarmnews.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://losarmnews.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.losarmnews.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.losarmnews.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ – [F,NC]

Post count: 5

Maybe I need to change something in htaccess code to solve my problem?

Post count: 20688

Hi,

It would be best to try and contact your hosting provider with this issue. The htaccess file may be configured by them, and you should better not make any modifications to it on your own.
So try to contact them and explain the situation. Tell them the images return a 404 upon accessing the URL. They should know what to do in the matter. You can post the solution here if possible, for other users with similar issues.

Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.