January 11, 2017

Hybrid-09 : Login with Facebook.






All most all App now used Facebook login intrgration.User can login with facebook email id and password without pre signup.In this tutorial I will show you how to integrate facebook login with your app and reveal the user information.

Plugins id- “cordova-plugin-facebook4”
Plugins Version- “1.7.4”

See The Demo.

***Remember:  This Plugins only works properly with minimum android sdk version 15 and lader. So, be sure you set mimimum android sdk version=15 in your build setting. and be sure you add your proper facebook app_id and app name when add this plugins.

#index.html



#my-appp.js



Don't forgot to replace your valid facebook app id in my-app.js file.
How to get Facebook App ID.

Login facebook developer account with your facebook account and add a new app from MyApp option of right upper corner. After Successfully create your App you need to set some Setting of your app from Setting Option. For better understanding you can watch my video.

Video coming soon...

Generate Hash key On LINUX:
Open Terminal and type following command to get your Hash Key.
For Debug Build: keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64
For release Build: keytool -exportcert -alias Replace_your_aliasName -keystore Replace_your_keystore_FilePath | openssl sha1 -binary | openssl base64

For more Click here.

Have any question? Let me know what is your opinion about this post.
Emoticon Emoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)