Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:36:34+00:00 2026-05-25T00:36:34+00:00

I have a Facebook application that uses the Facebook Connect.js . I am running

  • 0

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:// with the exception of some content that must be included within Facebook’s Connect.js

The problem is that I get warning messages saying that there are non-secure items within the page.

I’ve checked what scripts are being loaded using Chrome‘s Developer Tools / Network tab to see what files are being loaded and from where.

The only one I can see that is being loaded over HTTP and not over HTTPS is a file called http://static.ak.facebook.com/connect/canvas_proxy.php.

How can I force this file to use HTTPS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:36:34+00:00Added an answer on May 25, 2026 at 12:36 am

    TL;DR

    set FB._https to true before calling FB.init. Like so:

    FB._https = true;
    FB.init({
        /* your app id and stuff */
    });
    

    Explanation

    If you unminify the Facebook JavaScript SDK, you’ll see that its basically an object literal with a bunch of properties. One of these properties is _https, which is a boolean. This property determines which set of URLs to use (stored in FB._domain) when making API requests. It seems as though Facebook keeps two sets of URLs for each type of API request — a secure URL and and non-secure URL — then uses a switch function called getDomain() to determine which to use when making requests.

    The reason the JavaScript SDK causes security warnings is due to the way the FB._https property is defined. This is how it’s currently defined as of 2011-8-24:

    _https: (window.name.indexOf('_fb_https') > -1)

    Apparently Facebook thinks that if the window.name property has _fb_https in it, then it must be a secure app. This is obviously incorrect. The real test should be something similar to this:

    _https: window.location.protocol == "https:"

    Unfortunately, the SDK is not open source or even well documented, so I can’t submit a pull request for this change :P. In the short term, setting FB._https to true manually before calling FB.init should do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that uses Facebook Connect (built in Ruby on Rails
I have a mobile web application that uses the Javascript SDK to connect to
I have a Facebook canvas iframe application that uses the JavaScript SDK. How do
I have an iframe Facebook application that uses the Facebook PHP SDK to authenticate
I have an IFrame Facebook application that uses Facebook C# SDK. I also use
I have made an iframe style facebook application that uses php and javascript (jquery).
I have a site that uses the Facebook JavaScript API to allow users to
I have a Facebook application, my web site uses the C# API to post
I have an application set up that uses facebook credits set up with a
I have an application that uses the Facebook SDK for Android to login into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.