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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:32:23+00:00 2026-06-02T04:32:23+00:00

Error obtained is An error occurred, please try again later I created new facebook

  • 0

Error obtained is An error occurred, please try again later

I created new facebook app and go the APP ID. I entered domain name as blogspot.in and redirect URL as my blog

I then used the below code from

  <div id="fb-root"></div>
  <script>
    window.fbAsyncInit = function() {
      FB.init({
        appId      : 'YOUR_APP_ID',
        status     : true, 
        cookie     : true,
        xfbml      : true,
        oauth      : true,
      });
    };
    (function(d){
       var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
       js = d.createElement('script'); js.id = id; js.async = true;
       js.src = "//connect.facebook.net/en_US/all.js";
       d.getElementsByTagName('head')[0].appendChild(js);
     }(document));
  </script>
  <div class="fb-login-button">Login with Facebook</div>

I entered this code in my blog using Javascript/HTML gadget and everything works fine till logging in and allowing the app, after that i’m getting the error.

I even tried this using localhost by changing the 127.0.0.1 to local.localhost in hosts file but even in that i’m getting the same error. i went through many stackoverflow posts and nothing helped.

My questions are;

  • can we use login using facebook in blogger
  • If so, whats the problem and how to correct it?

Imp: You can view the error by going to my blog and in right side you can see login with facebook option(Don’t worry nothing happens by logging in, I’m just using it for testing)

  • 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-02T04:32:25+00:00Added an answer on June 2, 2026 at 4:32 am

    The facebook button with provide a way to facilitate users to login via facebook. In this way user grant facebook access to your website and once grant access completed, facebook will send you user data. You must use such data to process, authorize, auto login, auto signup user. it can’t be done directly but needed additional steps internally in your website or blog website.

    Follow the following approach while implementing facebook login / auto sign up process in your website using facebook login button.

    i: page script.

     <script>
        window.fbAsyncInit = function () {
            FB.init({ appId: 'appid', status: true, cookie: true,
                xfbml: true
            });
        };
        (function () {
            var e = document.createElement('script'); e.async = true;
            e.src = document.location.protocol +
               '//connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);
        } ());
    

    ii: create link and call facebook function when using click on login button. e.g

    <a rel="nofollow" href="javascript:void(0);"  onclick="fb_login();">login to facebook</a>
    

    iii: create fb_login() function

    function fb_login() {
    FB.login(function (response) {
        if (response.authResponse) {
            // user authorized
            Process_Login(u, redirect);
        } else {
            console.log('User cancelled login or did not fully authorize.');
        }
      }, { scope: 'email,user_birthday,user_hometown,publish_stream' });
    }
    

    // this function is responsible for sending data retrieved from facebook to your website via ajax for authorization, auto login, auto registration purpose.

    function Process_Login() {
    FB.api('/me', function (response) {
        var fb_data = "uid=" + response.id + "&fn=" + response.first_name + "&ln=" + response.last_name + "&gn=" + response.gender + "&bt=" + response.birthday + "&eml=" + response.email;
        if (response.hometown != undefined)
            fb_data = fb_data + "&loc=" + response.hometown.name;
        if (response.username != undefined)
            fb_data = fb_data + "&uname=" + response.username;
        $.ajax({
            type: 'GET',
            url: u + "handlers/signup.ashx",
            data: fb_data,
            success: function (msg) {
                 // login process completed
                 // redirect user to final page.
            }
        });
      });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I obtained a key for my Android/Facebook app using the following: keytool -exportcert -alias
The Error ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no
I'm new to Python and Mako and I'm learing to use it. I've obtained
Error loading script occurs under FireFox 3 if I quickly click different links on
Error : Error 1 bin\Debug\Daemon.exe.manifest;bin\Release\Daemon.exe.manifest is an invalid value for the InputManifest parameter of
Error: Unable to read data from the transport connection: A blocking operation was interrupted
Error: 155004 (Attempted to lock an already-locked dir) Description: Working copy '/Users/Carrie/MyProjects/Sandbox/Flip/Classes' locked
Error: End tag for 'optgroup' which is not finished. You have probably failed to
Error: 'WithEvents' variables can only be typed as classes, interfaces or type parameters with
Error % javac StringTest.java StringTest.java:4: variable errorSoon might not have been initialized errorSoon[0] =

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.