cjp

com.jp.plugin.facebook

Login, Share with Facebook 4.0

Showing:

Popularity

Downloads/wk

0

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

Apache-2.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

*Cordova : Facebook SDK 4.0*

By using this plugin you can login, logout, check loggedin user, share


First you need to download the facebook plugin, So go here to download Facebook SDK 4.3.0

https://developers.facebook.com/resources/facebook-android-sdk-4.3.0.zip


Install this plugin using:

cordova plugin add com.jp.plugin.facebook

Remove Plugins :

cordova plugin remove com.jp.plugin.facebook


After installed plugin you have to declare following activity in android mainest file:


After that add metadata in your manifest file


Put the below code in your javascript code:

For login:

facebook.login( function(success) { console.log(success); }, function(error) { console.log(error); } );


For logout:

facebook.logout( function(success) { console.log(success); }, function(error) { console.log(error); } );


For check user loggedin:

facebook.check_loggedin( function(success) { console.log(success); }, function(error) { console.log(error); } );


For share post:

facebook.share( function(success) { console.log(success); }, function(error) { console.log(error); }, file_path, message_text );

file_path: image or video path you want to share message_text: String message you want to share


GitHub URL: https://github.com/jaypratapsingh/Facebook

npm url : https://www.npmjs.com/package/com.jp.plugin.facebook

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial