Skip to content

ajeeshpu/phonegap-native-fb-ionic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ionic project using native fb authentication

A starting project for Ionic that supports authentication with native facebook integration

Phonegap Facebook plugin

phonegap facebook plugin available at phonegap-facebook-plugin

Why this project?

When you try to install this plugin in a normal cordova project , you will encounter a lot of build errors. Now if you manage to add this plugin successfully you will have a lot of runtime errors to deal with. At least I never got it working and so i think did many people out there.

How to build and deploy?

The folks over here wrote this life saver of a command line process that saved my day. So whatever goes forward is a repetition but specific to this project. (The steps below are for ionic and android. The ios version works with a regular plugin add)

  1. Checkout this project

  2. ionic platform add android

  3. cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_APP_ID" --variable APP_NAME="YOUR_APP_NAME" (replace the app_id and app_name with an app that you have created on facebook)

  4. android update project --subprojects --path "platforms/android" --target android-19 --library "CordovaLib"

  5. android update project --subprojects --path "platforms/android" --target android-19 --library "com.phonegap.plugins.facebookconnect/FacebookLib"

  6. cd platforms/android/

  7. ant clean

  8. cd com.phonegap.plugins.facebookconnect/FacebookLib

  9. ant clean

  10. open -e AndroidManifest.xml (It worked without this for me) // change your minSdkVersion and your targetSdkVersion to your environment settings for me it was: //

  11. ant release

  12. cd ../../../.. (this should bring you back to the project root)

  13. ionic build android

Facebook login

Configure your keyhash on the facebook app (step 3).

There are still bugs on the plugin for android when we remove the app from the permissions list, which already has a patch.

About

ionic with native fb integration for android and ios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages