detect http vs https in social share component