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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:15:09+00:00 2026-06-08T05:15:09+00:00

I have wrote a desktop app, that holds FB applications data and lists test

  • 0

I have wrote a desktop app, that holds FB applications data and lists test users.
I want to open a browser with new profile (browser profile, not FB, because to session problems in PHP facebook API – I want to be not in my a app session on my domain).

But the problem is, that facebook login URL is working or not randomly.
I have tried Firefox & Chrome.

Firefox with -no-remote, -p "RANDOM_PROFILE", and also -CreateProfile executing before execution to open url with that profile.

Chrome with --profile-directory="RANDOM_DIR" (directory created earlier).

Managing browser profiles works good in both browser. But in most cases, opening browser with Facebook Test User login URL, just redirects me to main page.

Also, i have created a some PHP pages:

  • one redirecting after a while to login URL by window.location
  • one redirecting after a sleep by header(‘Location: …’) to login url
  • one with <a href...> tag to login url.

Third option is the only one working, but it works in about 20% cases (sometimes clicking many times on that link & opening multiple times in new tabs is working)

How to do launch of a new browser instance with facebook login URL where loging works fine ?

Edit: my loging URL’s are always fetched from FB very shortly before login try, so they aren’t expired.

  • 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-08T05:15:10+00:00Added an answer on June 8, 2026 at 5:15 am

    I finally got this.

    The problem is, that http://facebook.com must be loaded at least one time (propably for setting some cookies) before using Test User login URL.

    So, i use a script to open the Facebook in iframe, and then after some time redirects to login url:

    <script>
    setTimeout(function(){
    window.location = "<?php echo $_GET['url']; ?>";
    } , 2000 );
    </script>
    <iframe src="http://facebook.com/"></iframe>
    

    Notice that facebook on iframe will load as head+body only blank page, but this is working.

    Then you can use this script to login Test User by passing it to Chrome command line, with url-encoded Test-User-Login-URL as ‘url’ GET parameter.

    Use fresh created directory for chrome profile to avoid getting old session on your app domain.

    Also, I suggest using arguments: --start-maximized, --no-default-browser-check, --no-first-run

    UPDATE: Notice that requested login URL will work only once with this method (and maybe any other methods – didn’t checked)

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

Sidebar

Related Questions

I have a Java rich client desktop app. that I want to distribute on
i have wrote a script to produce an array of data but now want
My company makes desktop software and we want to create an iPhone app that
I am creating a desktop app that will create some reports. I want to
Here's my use case. I have a desktop app that can download from my
We have an existing windows desktop app written in C# 6 that uses an
I have wrote a script that was run from a spreadsheet. I had One
I have wrote an application that syncs two folders together. The problem with the
So here's the scoop: I wrote a tiny C# app a while back that
I am creating a desktop app that will sit on a PC and occasionally

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.