30 Nisan 2018 Pazartesi

ionic3 facebook plugin build issue


While debugging your application with new facebook plugin  in ionic3(android platform) and you may get an exception. Its mostly deal with facebook version and cordova version dependency inconsistency.

To solve this problem, you just need to follow these steps

 - remove facebook exist plugin and all the related files in your app folder.


cordova plugin rm cordova-plugin-facebook4

 - remove and re-add android plugin


cordova platform rm android && cordova platform add android

 - Add your facebook plugin with the following command


cordova plugin add https://github.com/amritk/cordova-plugin-facebook4 --save --variable APP_ID="your facebook app ID" --variable APP_NAME="Your facebook App Name"


thats all. If you have any question about this issues please feel free the left comment to this post.
Yunus Emre Web Developer

Morbi aliquam fringilla nisl. Pellentesque eleifend condimentum tellus, vel vulputate tortor malesuada sit amet. Aliquam vel vestibulum metus. Aenean ut mi aucto.