cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution

Pinterest and Facebook sharing issues

I need assistance. I have a WordPress site hosted on Godaddy and am having problems with the Pinterest and Facebook sharing feature. I have tried 2 different plugin (Monarch & Ultimate Social Media Premium {USM}) but have the same results on both. I’m not sure if it’s a setting on my site, in Godaddy, in ht “,htaccess” file, or what. Every time we try sharing pics on to Pinterest or Facebook the errors shown in the screenshots come up. Google is not turning up anything that resolves. Any ideas? it's driving me nuts! 

 

Here’s the screenshots:
Pinterest:
http://prntscr.com/oesl7h

Facebook:
http://prntscr.com/oeslpc

 

Thanks, Petra

7 REPLIES 7
Highlighted
Super User II
Super User II

Re: Pinterest and Facebook sharing issues

@PetraDE 

 

It appears that the full sized featured image on your site is missing.

Facebook has a debugger tool you can use to see how a link you are sharing will look (https://developers.facebook.com/tools/debug/)

 

I ran your site through it and got https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.delightfulliving.net%2Fcrea...

 

This shows https://www.delightfulliving.net/wp-content/uploads/2019/06/apple-brainstorming-camera-908288.jpg as the featured image which is showing as a broken link when I go to the image.

 

If you have a file manager plugin (or FTP if you prefer) then you upload the one file to the file system

and you should be good to go

GoDaddy Pro User - Managing over 300 WP Sites

Re: Pinterest and Facebook sharing issues

Hello,

 

Big thanks for the reply and info.  However, I just validated that the image is there (see screenshot link). I totally get that the Facebook debug can't see it and neither can I when i click the link, so that means that there is indeed a problem getting to it...but it's there.  Permissions are 644, same as all media.  Could it be something in the .htaccess file?  I have searched for a good tutorial on how to edit that file, but everything I've found seems so fragmented and doesn't really explain what the fields are for and how to change them. 

 

http://prntscr.com/oeudaa

 

Thanks,

Petra

Super User II
Super User II

Re: Pinterest and Facebook sharing issues

@PetraDE 

 

Do you have any caching plugins installed on this site - what's interesting is if I right click and say open image in new tab then I can get to it, but if I go direct to the the file it shows 404  

 

I'm assuming the .htaccess file is in the root of the site - if you want to send me a private message with the content of the file I can take a look for you

GoDaddy Pro User - Managing over 300 WP Sites
Solution

Re: Pinterest and Facebook sharing issues

So, I found what's causing it!  The blow line in my .htaccess had the - F, which after cracking open the trusty Apache docs means "forbidden".  The problem for me was that I had 2 .htaccess files, one was in the root of my server and i had edited it but to no avail...then I just noticed that I have a "public_http" directory, duh....that's the web root!  Crap, was modifying the wrong file all the time!  So, after I commented out that line it started working.  I can't explain the experience you had above, maybe has to do with directory traversal? I gotta noodle that one...

 

So, anyway, now that I comment out that line it works. But, I guess my problem is why was it there in the first place and how can I maybe achieve the same thing, but just allow access to Pinterest, Facebook, Twitter and so forth? 

 

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

 

Thanks, 

Petra

 

Super User II
Super User II

Re: Pinterest and Facebook sharing issues

Not sure off hand I think you would need to do an if statement that if not one of those refers than apply your rule. My concern would be trying to format for all possibly formats to the domains.

Is there something specific you are trying to accomplish with the restriction
GoDaddy Pro User - Managing over 300 WP Sites

Re: Pinterest and Facebook sharing issues

I guess not really.  I think the idea was to prevent web scrapers from harvesting images. Honestly, we don't have any copyrighted images anyway, so I guess we could disable it.  Not sure if the added layer of security is necessary.  I didn't put the line in there, it was somehow done automatically by Wordpress (I assume).  Is it not common practice to have that in the .htaccess file?  From what I read in the Apache documentation using the .htaccess file is not really recommended, they'd rather you place restrictions in the server config. But, since this is a hosted site I won't have access to the server config and Godaddy expects each customer to control their own.  I guess I just don't know if it's necessary and what the risk is, someone gets all my images?  Wonder if I care.  I guess if I started having copyrighted material I could use a separate directory and apply that rule to just that directory. 

 

Petra

 

Petra

Super User II
Super User II

Re: Pinterest and Facebook sharing issues

@PetraDE 

 

There are some WordPress plugins that prevent right mouse click / view source - not 100% perfect but if you want the "added sense" / block the "average" person then that could work... also keep in mind that once it's on facebook it's possible to get spidered from there as facebook imports the image to their servers.

GoDaddy Pro User - Managing over 300 WP Sites