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

  • Home
  • SEARCH
  • 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 8121593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:32:40+00:00 2026-06-06T05:32:40+00:00

hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function

  • 0

hello I am having problem related to https://. I have used FB.getLoginStatus(function(response) function in my code. It is only working for http:// but not for https://. I have googled it and found a solution of using FB._https = (window.location.protocol == "https:");. It was working well few days ago but has now stopped working.

My code looks like

 <script>
        FB._https = (window.location.protocol == "https:");
        FB.init({
            appId : '<?php echo $this->appId; ?>',
            status : true, // check login status
            cookie : true, // enable cookies to allow the server to access the session
            xfbml : true // parse XFBML
        });

     function PostAction(custom_action)
     {
        console.log('out side of getlogin status');
        FB.getLoginStatus(function(response)
        {
          console.log("in getlogin status");
          if (response.authResponse) {
             fbcallBack(response);
          } else {
             FB.login(fbcallBack, {scope:'publish_stream'});
        }
      });
   }
</script>

My PostAction() is called on an onclick event. I have written console.log() to debugg the code. console with out side of reglogin status is triggered but not in getlogin status when using facebook with https. But if I am using http:// it works well.

Can any body guide me please what is the problem? how to fix it?

Regards.

  • 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-06-06T05:32:41+00:00Added an answer on June 6, 2026 at 5:32 am

    As of yesterday at 22:00 Facebook made this announcement:

    http://developers.facebook.com/blog/post/2012/06/20/platform-updates–operation-developer-love/

    As announced in May, we have updated the Javascript SDK to limit the
    publicly exposed interface. This is part of an ongoing process to
    improve the reliability of the SDK. We have removed access to all
    internal properties and to methods prefixed with _.

    If you are currently relying on accessing internal properties, please
    refactor this so that you only rely on the publicly available (and
    officially supported) methods listed at
    https://developers.facebook.com/docs/reference/javascript/.

    Note that all methods not listed as part of the public API might be
    subject to change or removal, and you should not use them directly.

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

Sidebar

Related Questions

Hello I am trying to create a brush but I am having problem with
Hello there i'm having a problem here i have an add and edit form
Hello friends i am having problem in parsing jSON web services data I have
Hello I seem to be having some problem involving counting in Django. I have
I was working through a tutorial at http://fszlin.blogspot.com/2010/05/comsuming-wcf-services-with-android.html and am having a problem. The
Hello I'm having a problem here. The code looks like this. private void Form3_Load(object
hello im just having a problem here with PREG_MATCH_ALL() lets say i have 2
Hello i have just started learning mvc2 and im having a problem with the
Hello i am having a problem with resuming a thread my code is public
Hello I am having a problem with the numbering of figures using Latex, I

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.