Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Share Button breaks my SSL/HTTPS

Facebook Share Button breaks my SSL/HTTPS connection in Chrome. Chrome is displaying a red HTTPS with a (/) slash displaying acroess the https.

Its states:

Your connection to XXXXXXXXXX.com is encrypted with 256-bit encryption. However, this page includes other resources which are not secure. These resources can be viewed by others while in transit, and can be modified by an attacker to change the behavior of the page.

The connection uses TLS 1.0

The connection is encrypted using AES_256_CBC, with SHA1 for message authentication and DHE_RSA as the key exchange mechanism

The connection is not compressed.

How can I fix this issue? My code for Facebook is listed below:

name="fb_share" 
share_url="https://mysexywear.com/product_details.php?prodId=<?php echo $prodId;?>&catId=<?php echo $catId;?>" 
href="https://www.facebook.com/sharer.php">Share

src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"
like image 798
Keel Russell Avatar asked Sep 26 '26 02:09

Keel Russell


2 Answers

Try using a relative protocol, like so:

name="fb_share" share_url="//mysexywear.com/product_details.php?prodId=&catId=" href="//www.facebook.com/sharer.php">
like image 153
Dave Bish Avatar answered Sep 28 '26 21:09

Dave Bish


try this url ;)

https://facebook.com/connect.php/js/FB.Share
like image 39
Fareed Alnamrouti Avatar answered Sep 28 '26 21:09

Fareed Alnamrouti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!