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 7723641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:29:34+00:00 2026-06-01T04:29:34+00:00

I have a Facebook connect site and am having issues with the Facebook login

  • 0

I have a Facebook connect site and am having issues with the Facebook login part on mobile browsers (ie: iPhone Safari, etc). Whenever I click the login button, it opens a new tab in Safari which takes me to a URL like this: https://s-static.ak.fbcdn.net/connect/xd_proxy.php… followed by a bunch of extra hashes.

The problem is, this page doesn’t auto close and go back to my app. I have to manually close it and then go back. The login process works fine and the other page has already refreshed and loaded, but I can’t figure out why it’s not auto closing the XD Proxy page.

I’ve followed all the tutorials on Facebook for setting up the javascript code. I’m using FB.login() to actually login. It works flawlessly on the desktop. I’m wondering if this is a bug in Facebook’s javascript or not, but I can’t seem to figure it out. Any ideas would be very helpful.

Here is the code I’m using, for reference:

<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId: "APP_ID",
      status: true, 
      cookie: true,
      oauth: true,
      xfbml: true
    });
  };

  (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
</script>

<button onclick="loginToFB();" type="button" class="fb-login-button">Login with Facebook</button>

<script type="text/javascript">
  function loginToFB(next) {
    FB.login(function(response) {
      if (response.authResponse) {
         window.location = '/facebook';
      }
    }, {scope: 'SCOPE_STRING'});
  }
 </script>

Thanks!

  • 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-01T04:29:35+00:00Added an answer on June 1, 2026 at 4:29 am

    Try first calling the getLoginStatus() function and don’t do FB.login() if the user is already logged in.

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

Sidebar

Related Questions

I have a mobile application that I'm using with Facebook connect. I'm having trouble
I have a facebook connect button on this site here is the code <fb:login-button
I have a mobile web site using Facebook Connect to authenticate user. I encountered
I have a facebook connect site using the c# facebook toolkit. I want to
I have facebook connect button on a page of my site and I want
I have just put implemented Facebook connect on my web-site using the JavaScript SDK.
I have an app that uses facebook connect. When it has to login to
When you use facebook connect on the iPhone do you have to use the
I have used Facebook Connect in my site but it is not working properly.
We are working on adding some Facebook Connect functionality to our site. Part of

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.