Facebook Test User API Login URL that works or isn't random

I wrote a desktop application that stores FB application data and lists test users. I want to open a browser with a new profile (browser profile, not FB, because for session problems in PHP facebook API - I want to be out of my application session in my domain).

But the problem is that the facebook login URL works or is not accidental. I tried Firefox and Chrome.

Firefox with -no-remote, -p "RANDOM_PROFILE"and -CreateProfileperformed before executing to open the URL from that profile.

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

Managing browser profiles works well in both browsers. But in most cases, opening a browser with the Facebook Test login URL simply redirects me to the main page.

In addition, I created several PHP pages:

  • one redirection after a while to enter the url through window.location
  • one redirection after the sleeping header ('Location: ...') for logging in.
  • with a tag <a href...>to log in.

The third option is the only one that works, but it works in about 20% of cases (sometimes repeatedly clicking on this link and opening it several times on new tabs works)

How to launch a new browser instance with a facebook login URL, where does the protocol work?

: URL- FB , .

+1
1

.

, http://facebook.com (, cookie) URL- .

, script, Facebook iframe, URL- :

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

, facebook iframe head + body, .

script Test Test User, Chrome, URL- Test-User-Login-url "URL-" GET.

chrome, .

, : --start-maximized, --no-default-browser-check, --no-first-run

: , URL- (, , - )

+2

Source: https://habr.com/ru/post/1533008/


All Articles