@ibnclaudius wrote:
I am creating an application using Ionic 2 that will make some calls to Facebook API. I followed the steps from documentation and installed the cordova plugin cordova-plugin-facebook4.
Now I'm trying to authenticate the user, but without success. My login page:
import {Page} from 'ionic-framework/ionic'; @Page({ templateUrl: 'build/pages/page1/page1.html', }) export class Page1 { login() { facebookConnectPlugin.login( ['email'], response => { console.log(response); }, error => { console.log(error); } ); } }
When I run the application with:
ionic serve
I get the following error in the terminal:
When I click on the login button I get the following error in the console:
And when I try to build the application to run on a real device I get the following error in the console:
I think I have to import the plugin to be able to use, but how?
Posts: 2
Participants: 2