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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:16:51+00:00 2026-06-02T11:16:51+00:00

Here is my code <html> <head> <head> <title></title> <script type=text/javascript charset=utf-8 src=cordova-1.6.0.js></script> <script type=text/javascript>

  • 0

Here is my code

<html>
    <head>
        <head>
            <title></title>

           <script type="text/javascript" charset="utf-8" src="cordova-1.6.0.js"></script>
           <script type="text/javascript">



                    function go()
                    {

                        FB.login(function(response) {
                                 if (response.authResponse) {
                                 console.log('Welcome!  Fetching your information.... ');
                                 FB.api('/me', function(response) {
                                        console.log('Good to see you, ' + response.name + '.');
                                        });
                                 } else {
                                 console.log('User cancelled login or did not fully authorize.');
                                 }
                                 });                        

                    }





                </script>

                <body>
                    <div id="fb-root">

                    </div>

                    <script>
                        window.fbAsyncInit = function() {
                            FB.init({
                                    appId      : '', // App ID
                                    channelUrl : '', // Channel File
                                    status     : true, // check login status
                                    cookie     : true, // enable cookies to allow the server to access the session
                                    xfbml      : true,  // parse XFBML
                                    oauth      : true  //oauth v2.0 
                                    });

                        };


                        // Load the SDK Asynchronously
                        (function(d){
                         var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
                         if (d.getElementById(id)) {return;}
                         js = d.createElement('script'); js.id = id; js.async = true;
                         js.src = "//connect.facebook.net/en_US/all.js";
                         ref.parentNode.insertBefore(js, ref);
                         }(document));

                        </script>

                    <input onclick="go();" type='submit' id='login-button' value='Login' name='login' >

                </body>
</html>

Basically you click the button and it should show you a login pop-up. It works when I try in a normal browser but when I try in the iPhone simulator nothing happens. Iv also set the iPhone browser to allow pop-ups. what am I doing wrong?

  • 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-02T11:16:53+00:00Added an answer on June 2, 2026 at 11:16 am

    I got it working using the phonegap plugin called Childbrowser 🙂

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

Sidebar

Related Questions

Here is my code <html xmlns=http://www.w3.org/1999/xhtml> <head runat=server> <title></title> <script type=text/javascript src=<%= ResolveUrl(Scripts/jquery-1.3.2.min.js) %>></script>
Here's my code for registerFormOne.php : <html> <head> <title>Registration Form - 1 of 2</title>
What is wrong with the following htmla and javascript code formToConvert.html <html> <head> <title>ExampleToConvert</title>
This is my html Code: <input type=checkbox name=test id=test /> Here i want to
I am using Google maps JavaScript API. Here is code : <!DOCTYPE html PUBLIC
Ok, here's my code: <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd> <html> <head> <meta
I am new to JavaScript. Here is the HTML code from my .php page
Here is my html code with javascript validations.... HTML elements are showing well javascript
Here is a part of my html code (video urls marked with a django-template
Here is an old add in to quickly comment out HTML code. Maybe 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.