Cordova facebook plugin help


#1

Having issues getting data from facebook profile using the cordova facebook plugin. Has anyone have experience working with this plugin? How were your api calls made


#2

Hi @erickwong618

Can you follow code example below:

$ionicPlatform.ready(function() {
     $cordovaOauth.facebook(FBAPP_ID, ["public_profile", "email", "user_friends"]).then(function(response) {
          if (response.access_token) {
               // Call api of you at here
          }else{

          }
     , function(error) {
          // Handle error at here
     });
});

hope it can help you!


#3

Try this: https://github.com/srameshr/ionic-starter-oauth