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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:14:17+00:00 2026-06-05T12:14:17+00:00

I am using the Facebook plugin for phonegap. There I am using the ChildBrowser

  • 0

I am using the Facebook plugin for phonegap. There I am using the ChildBrowser to open an external url when the login is successful.The web page specified opens fine when I call the openExternal but the onLocationChange is not getting called.
It will be great if you could let me know what is wrong with the code.
The code is as follows..

    init:function(){

    // Begin Authorization
    var authorize_url = "http://graph.facebook.com/oauth/authorize?";
     authorize_url += "client_id=" + my_client_id;
     authorize_url += "&redirect_uri=" + my_redirect_uri;
     authorize_url += "&display=" + my_display;
     authorize_url += "&scope=publish_stream,offline_access"


     // Open Child browser and ask for permissions
     client_browser = ChildBrowser.install();

    if (client_browser != null) {
         alert("In the init section " + client_browser); 

         client_browser.onLocationChange = function(loc){
             alert("Log location = " + loc);

         };             

         window.plugins.childBrowser.openExternal(authorize_url);

     }

}

I have also tried the

window.plugins.childBrowser.onLocationChange = function(loc){
         alert("In the client_browser section ");  
         Facebook.facebookLocChanged(loc);
     };

but this is also not working.
Any help/ suggestions would be appreciated.
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-05T12:14:19+00:00Added an answer on June 5, 2026 at 12:14 pm

    openExternal opens the Android Web Browser, the onLocationChanged event will not be called in that case. You need to use showWebPage in order to get the onLocationChanged event.

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

Sidebar

Related Questions

I'm using phonegap-plugin-facebook-connect and it is working well (I can login the user and
Is there any way using the facebook registration plugin custom fields, to make them
I am using webtechnick facebook plugin, i have everything set and its FB login
i am using cakephp facebook plugin. when i click login. i get the following
I'm using the Facebook like plugin. So, when you are on a page and
Here I am using Facebook Login button plugin and javascript sdk I am able
I'm using Facebook comments Plugin on one of my page (WordPress Driven) and it
I'm adding a Facebook 'like' button to the DOM using this jQuery plugin: http://onerutter.com/open-source/jquery-facebook-like-plugin.html
I am using facebook plugin to login and logout a user, which are working
Here I am working with asp.net web application, I am using 2 facebook plugin

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.