I have a Facebook application that uses the Facebook Connect.js.
I am running my application over HTTPS. All content on the site is delivered from https://
https://
So this would give you the same protocol link:
FB._https = (window.location.protocol == "https:");