Missing thumbnail when sharing link on Facebook

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Tue, 2013-11-19 15:56

Hello,

I'm using this code to protect hotlinking:

Quote:
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png)$ http://domain.com/ [R=302,L]

This code will disable direct access to image.

And I added additional this line:

Quote:
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?facebook.com/.*$ [NC]

But when sharing link on Facebook, thumbnail is missing.

Anyone can tell me how to allow Facebook display my thumbnail on Facebook in this case?

Thanks.