Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/facebook-login

Package Overview
Dependencies
Maintainers
33
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/facebook-login - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

package.json
{
"name": "@capacitor-community/facebook-login",
"version": "3.0.0",
"version": "3.1.0",
"description": "A native plugin for Facebook Login",

@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js",

@@ -1,15 +0,20 @@

[![npm version](https://badge.fury.io/js/%40capacitor-community%2Ffacebook-login.svg)](https://badge.fury.io/js/%40capacitor-community%2Ffacebook-login)
<p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
<h3 align="center">Facebook Login</h3>
<p align="center"><strong><code>@capacitor-community/facebook-login</code></strong></p>
<p align="center">
Capacitor community plugin for native Facebook Login.
</p>
<p align="center">
<img src="https://img.shields.io/maintenance/yes/2021?style=flat-square" />
<!-- <a href="https://github.com/capacitor-community/example/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/workflow/status/capacitor-community/example/CI?style=flat-square" /></a> -->
<a href="https://www.npmjs.com/package/@capacitor-community/facebook-login"><img src="https://img.shields.io/npm/l/@capacitor-community/facebook-login?style=flat-square" /></a>
<br>
<a href="https://www.npmjs.com/package/@capacitor-community/facebook-login"><img src="https://img.shields.io/npm/dw/@capacitor-community/facebook-login?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/@capacitor-community/facebook-login"><img src="https://img.shields.io/npm/v/@capacitor-community/facebook-login?style=flat-square" /></a>
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-2-orange?style=flat-square" /></a>
<!-- ALL-CONTRIBUTORS-BADGE:END -->
</p>
# ✅ Please check
This is development README for Capacitor v3. If you use v1 or v2, please check [./README_v2.md](README_v2.md)
# capacitor-facebook-login
Capacitory community plugin for Facebook Login.
## Demo
[Demo code is here.](https://github.com/capacitor-community/facebook-login/tree/master/demo/angular)
## Maintainers

@@ -23,2 +28,5 @@

## Demo
[Demo code is here.](https://github.com/capacitor-community/facebook-login/tree/master/demo/angular)
## Installation

@@ -31,3 +39,3 @@

## Android configuration
### Android configuration

@@ -49,20 +57,4 @@ In file `android/app/src/main/java/**/**/MainActivity.java`, add the plugin to the initialization list:

```xml
<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"/>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="@string/facebook_client_token"/>
```

@@ -74,13 +66,13 @@

<string name="facebook_app_id">[APP_ID]</string>
<string name="fb_login_protocol_scheme">fb[APP_ID]</string>
<string name="facebook_client_token">[CLIENT_TOKEN]</string>
```
Don't forget to replace `[APP_ID]` by your Facebook application Id.
Don't forget to replace `[APP_ID]` and `[CLIENT_TOKEN]` by your Facebook application Id.
More information can be found here: https://developers.facebook.com/docs/facebook-login/android
More information can be found here: https://developers.facebook.com/docs/android/getting-started
### If you have trouble.
#### If you have trouble.
Please restart Android Studio, and do clean build.
## iOS configuration
### iOS configuration

@@ -134,32 +126,33 @@ In file `ios/App/App/AppDelegate.swift` add or replace the following:

<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb[APP_ID]</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb[APP_ID]</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>[APP_ID]</string>
<key>FacebookClientToken</key>
<string>[CLIENT_TOKEN]</string>
<key>FacebookDisplayName</key>
<string>[DISPLAY_NAME]</string>
<string>[APP_NAME]</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
```

@@ -169,3 +162,3 @@

## Web configuration
### Web configuration

@@ -196,11 +189,2 @@ ```javascript

## Supported methods
| Name | Android | iOS | Web |
| :-------------------- | :------ | :-- | :-- |
| login | ✅ | ✅ | ✅ |
| logout | ✅ | ✅ | ✅ |
| getCurrentAccessToken | ✅ | ✅ | ✅ |
| getProfile | ✅ | ✅ | ✅ |
## Example

@@ -207,0 +191,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc