title: The facebook login window pops up and immediately closes for all accouts except mine
body: <p>using the flutter_facebook_login pacakage and <a href="https://medium.com/flutter-community/flutter-facebook-login-77fcd187242" rel="nofollow noreferrer">https://medium.com/flutter-community/flutter-facebook-login-77fcd187242</a> link, facebook login window appears but closes immediately. 
  This problem exists when i try my app using other facebook accounts, but it works for my own facebook id.</p>
  
  <p>The problem most probably lies with the user access token, how can i allow multiple users to access the login features when using the app?</p>
  
  <p>The error that shows is :</p>
  
  <pre><code>W/ActivityThread(30135): handleWindowVisibility: no activity for token android.os.BinderProxy@6ccdd3
  I/Timeline(30135): Timeline: Activity_launch_request time:15389566 intent:Intent { cmp=com.facebook.katana/.ProxyAuth (has extras) }
  </code></pre>
  
  <pre><code>import 'dart:convert';
  
  import 'package:flutter/material.dart';
  import 'package:flutter_facebook_login/flutter_facebook_login.dart';
  import 'package:flutter_signin_button/flutter_signin_button.dart';
  import 'package:http/http.dart' as http;
  
  void main() {
    runApp(FacebookLoginPage());
  }
  
  class FacebookLoginPage extends StatefulWidget {
    @override
    _FacebookLoginPageState createState() =&gt; _FacebookLoginPageState();
  }
  
  class _FacebookLoginPageState extends State&lt;FacebookLoginPage&gt; {
    bool isLoggedIn = false;
    var profileData;
  
    var facebookLogin = FacebookLogin();
  
    void onLoginStatusChanged(bool isLoggedIn, {profileData}) {
      setState(() {
        this.isLoggedIn = isLoggedIn;
        this.profileData = profileData;
      });
    }
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: Text("Facebook Login"),
            actions: &lt;Widget&gt;[
              IconButton(
                icon: Icon(
                  Icons.exit_to_app,
                  color: Colors.white,
                ),
                onPressed: () =&gt; facebookLogin.isLoggedIn
                    .then((isLoggedIn) =&gt; isLoggedIn ? _logout() : {}),
              ),
            ],
          ),
          body: Container(
            child: Center(
              child: isLoggedIn
                  ? _displayUserData(profileData)
                  : _displayLoginButton(),
            ),
          ),
        ),
      );
    }
  
    void initiateFacebookLogin() async {
      var facebookLoginResult =
          await facebookLogin.logInWithReadPermissions(['email']);
  
      switch (facebookLoginResult.status) {
        case FacebookLoginStatus.error:
          onLoginStatusChanged(false);
          break;
        case FacebookLoginStatus.cancelledByUser:
          onLoginStatusChanged(false);
          break;
        case FacebookLoginStatus.loggedIn:
          var graphResponse = await http.get(
              'https://graph.facebook.com/v2.12/me?fields=name,first_name,last_name,email,picture.height(200)&amp;access_token=${facebookLoginResult.accessToken.token}');
  
          var profile = json.decode(graphResponse.body);
          print(profile.toString());
  
          onLoginStatusChanged(true, profileData: profile);
          break;
      }
    }
  
    _displayUserData(profileData) {
      return Column(
        mainAxisSize: MainAxisSize.min,
        children: &lt;Widget&gt;[
          Container(
            height: 200.0,
            width: 200.0,
            decoration: BoxDecoration(
              shape: BoxShape.circle,
              image: DecorationImage(
                fit: BoxFit.fill,
                image: NetworkImage(
                  profileData['picture']['data']['url'],
                ),
              ),
            ),
          ),
          SizedBox(height: 28.0),
          Text(
            "Logged in as: ${profileData['name']}",
            style: TextStyle(
              fontSize: 20.0,
            ),
          ),
        ],
      );
    }
  
    _displayLoginButton() {
      return Container(
        height: 50,
        child: SignInButton(
          Buttons.Facebook,
          // mini: true,
          // width: 200.0,
          text: "Sign in with Facebook",
          onPressed: () {
            initiateFacebookLogin();
          },
        ),
      );
      // return RaisedButton(
      //   child: Text("Login with Facebook"),
      //   onPressed: () =&gt; initiateFacebookLogin(),
      // );
    }
  
    _logout() async {
      await facebookLogin.logOut();
      onLoginStatusChanged(false);
      print("Logged out");
    }
  }
  
  </code></pre>