Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I solve the error when accessing facebook login

Tags:

flutter

I am new in mobile application. I am trying to do facebook login. I followed this Sample application https://pub.dartlang.org/packages/flutter_facebook_connect but I am getting error in facebook page like this- "cannot load URl: this domain URL is not included in api domain. to enable this url uploaded, enter all your app domains and subdomains on the api domain field in your app settings".

like image 372
Joby James Avatar asked Oct 18 '17 10:10

Joby James


Video Answer


1 Answers

Use it this way:

_facebookSignIn() async {
        final _facebookConnect = new FacebookConnect(
            appId: '<APP_ID>',
            clientSecret: '<CLIENT_SECRET>');
        FacebookOAuthToken token = await _facebookConnect.login();

     //FirebaseUser user = await FirebaseAuth.instance.signInWithFacebook(accessToken: token.access);
       // return user;}

You have to follow the instructions at developers.facebook, and add http://localhost:8080 in your app Settings under Products>MyApp>Settings

enter image description here

like image 191
Shady Aziza Avatar answered Sep 28 '22 11:09

Shady Aziza