Is it possible to include a Facebook Share button on an SSL page? Currently, the site will not load the Facebook Share button if people click Yes when questioned by the browser if they only want to view content delivered securely.
I tried changing the URL to the script defined in the facebookshare.module file from http://static.ak.fbcdn.net/connect.php/js/FB.Share to https://static.ak.fbcdn.net/connect.php/js/FB.Share , just to see if that would work. That caused a security error/warning to occur about content being blocked from an invalid security certificate. The technique of using https:// in the URL worked when trying to get the tweetbutton and linkedinbutton modules to work on an SSL page. But it did not work here.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | facebookshare-1398152-7.patch | 951 bytes | barancekk |
Comments
Comment #1
john.oltman commentedTry this:
https://s-static.ak.fbcdn.net/connect.php/js/FB.Share
(s-static.ak instead of static.ak)
Let me know if that does it.
Comment #2
wildlife commentedThat seems to be it. You should probably change that in the module code because it works on both http:// and https:// pages that way.
Thanks a bunch. I'll let you know if any other issues arise with it, but I think that's all that was needed.
Comment #3
john.oltman commentedOk, thanks. HTTPS is slow, so rather than always use it, I'll change the module to use SSL when it detects that the page is served that way.
Changing to feature request and re-titled.
Comment #4
wildlife commentedEven better. Thanks again.
Comment #5
pedrop commented+1
this works for me under apache2:
Comment #6
john.oltman commentedCommitted to 7.x branch. Will back port to 6.x when I get a chance.
Comment #7
barancekk commentedThank you guys for this module.
I created a patch file that includes similar patch as in post #5 but for 7.x-1.3 version. One difference is that I am using facebook.com page also for http connection. ('http://connect.facebook.com/connect.php/js/FB.Share').
Can you please push this patch to 7.x-1.3 as is not there?
Thank you very much
Karol
Comment #8
guddo commentedWhy not
src="//s-static.ak.fbcdn.net/connect.php/js/FB.Share"?