{"_id":"@atherenergy/react-native-facebook-login","_rev":"5-805f5a24b6e9606452955a882e9a6029","name":"@atherenergy/react-native-facebook-login","dist-tags":{"latest":"1.6.5"},"versions":{"1.6.2":{"name":"@atherenergy/react-native-facebook-login","version":"1.6.2","description":"React Native wrapper for native iOS Facebook SDK login button and manager","main":"index","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/magus/react-native-facebook-login.git"},"keywords":["react","react-component","react-native","native","ios","android","facebook","login","sdk"],"author":{"name":"Yogesh Joshi","email":"iyogeshjoshi@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/atherenergy/react-native-facebook-login/issues"},"homepage":"https://github.com/atherenergy/react-native-facebook-login","peerDependencies":{"react-native":">=0.26.2","react":">=15.0.2 || ^16.0.0-0","prop-types":"^15.5.10"},"dependencies":{"itypeof":"^1.1.2"},"gitHead":"4fb14a6562856ba283958eb4fd3eaf6b80e472b7","_id":"@atherenergy/react-native-facebook-login@1.6.2","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Mk1M7yYHflWlBHNFA29VvdfMSBnIUGOG0MpHE2mbRLx4xfxVqMGP8EAEsfAb+lU9nAOGtZ3fvcYXeENCKFAQ7w==","shasum":"93612f23810f8f775fd6a80181054ba3fa57ae66","tarball":"https://registry.npmjs.org/@atherenergy/react-native-facebook-login/-/react-native-facebook-login-1.6.2.tgz","fileCount":129,"unpackedSize":37594944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM/SfCRA9TVsSAnZWagAAbhoP/jYQmDhZ3IoB9z/IDLGn\ntlNldXED0NlRfW9o1e3uVhJhLpS6zEnEtmWt0Smp5h8ybIzXr28wgA+lQ6Yo\nu+iGsTO+WcTa9qNR3ZsY8yu+SoCYt26nSIGsrnJdMgRGA58nAwkGE5oPjMPR\nJ9oFjRl8YCVUwRNAJsLXTzf6LqExbO2JoHts0ElQBf2YS7mTlzCOhxDoLph5\n7SiiOz2TU6X+v3TC1dMHep4wcrkBalxS9LSA8j9ptuQmd6nWK6ahs/fWSOx7\nZwGPQ/Hsu0P0nDlXkxLZcq5JabeY/b5L8UZMRqdFn4bDmRAZGvm6Q/IhdGGg\nlJCPWp8DpwNRFqnKGD/JTvNfO6E6UqXVWZodWfJdxkTBCFhaeZbYy151opFm\n066td7C1PFGIdM+0/TQVwgANmJyiwPC+T/UOlP+BFNES336SYIE3gUH2m2PL\nW5yRGHLZ1jeCJAwHJ28s6XjqkSikJ3KQhE7EN7zq2ZY9YuMNQF07XlVwJUmS\nxzWtIklgGy4pHY1vEF02LTbqfEIspOt1T/j/inZa0fe2Paxi6xTl3lNQPMNz\nKS5DYbhftx/Io0ZTcDvVwJjCCactvvnzQFf+8HPwZ+SABGLKpVaxYFOpxEmo\ndo/NEg2S+8xjeTPy6EVRuNsY8NteyootB/HHayX0TkFnGngR12GTnyvc5hs9\nqKsC\r\n=ZR1m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbcHmdu6ja1DeISkdVGtoL0+BCbqVg6N5XC9eMOevjaAIhAOx+/7GdDz4cSujupuQyCP4MBGVW9nWTBoVD2qCiTeQz"}]},"maintainers":[{"name":"lo-gun","email":"Aakash.kodwani@atherenergy.com"},{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"}],"_npmUser":{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-facebook-login_1.6.2_1580463262284_0.9039177593816328"},"_hasShrinkwrap":false},"1.6.3":{"name":"@atherenergy/react-native-facebook-login","version":"1.6.3","description":"React Native wrapper for native iOS Facebook SDK login button and manager","main":"index","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/magus/react-native-facebook-login.git"},"keywords":["react","react-component","react-native","native","ios","android","facebook","login","sdk"],"author":{"name":"Yogesh Joshi","email":"iyogeshjoshi@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/atherenergy/react-native-facebook-login/issues"},"homepage":"https://github.com/atherenergy/react-native-facebook-login","peerDependencies":{"react-native":">=0.26.2","react":">=15.0.2 || ^16.0.0-0","prop-types":"^15.5.10"},"dependencies":{"itypeof":"^1.1.2"},"gitHead":"49f2f5afb061ef5ca9241229b1ebe60c2cd485dc","_id":"@atherenergy/react-native-facebook-login@1.6.3","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-A5tgG68g5h2Oa+EaMk6xeNEDTYZ2H1vl4eFYQtp//w2W7nMPFBnpnAxdcLQxfaXpsXdNosoYdklvsbJRM7FZVw==","shasum":"8b4b969651dd3c6b1100975fbf776b9658b0a01c","tarball":"https://registry.npmjs.org/@atherenergy/react-native-facebook-login/-/react-native-facebook-login-1.6.3.tgz","fileCount":129,"unpackedSize":37595298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM/emCRA9TVsSAnZWagAAR/wP/iIxNkn/OAPmFVqiCHjK\nZDdKboXkjdsRuWQoI2HNSLVLeQ44xh2vUcGBrko2cSz3f/qfhXqRVr3lHpoU\n237Tt4oASHkjXR13P2/uMG3MB/b6lCYruy4Q6FTRjBnOCDfVuUpc+4QQ4ovy\nAunKo+0Dg61HAVyupm8l1dbZ5KlfMrETJMi1+YkIalBw2X7ze3Cqe7mfYIh1\n1cEd9JfLofXNexkrb6pvjQZBdydEnh31JmjtitCkXIBlDjKCEhtIB8qXhKQW\nKWML736l5kvpBBdFeq6+PgvFXaknk9yWsVt+e2Pmb3Kks2WE+wG4hd6caqJs\nk7S6sCOrKo6eLo/p5m/caH1XtD54r+uyvnyupB/vEpWcy/6YIxq1bwfofNr0\nsZEgOGWKhKwxWoJLwHGGgy1bm9P1uOZMUD50EUBEIwiVRow4H4LpUgXD2OJN\nDOXrx88VusZIXs2KjXKufYpJErtud6U+MrroY2N+njfHUzk8GjBvPhudv8CV\n1XjKoaCCm7XNBywG7CvB/Gmc+J4NfC1Vk8oqTfC/R2vUmA3hwoPiffPeO+pa\nKRqi1WLWah6qLKRGZeWG1swZkKdEHyG6RyYUAtA0OwBioZGw7Q7KkCuGYjwl\nQ+kYPtRNtwGlLU6vCoig8mPNC9MmrBfh32AzqwmRd/f/qRdvGwPdnUSk6Y97\nvvIF\r\n=tekm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArjLUHtFFPVGD+jk4zoeLt2Q48J92aE0ngWXkrMY8FRAiEAqPh2IXGVsOhuzkvk0VXVXDrpsb07EdaZgauuxHM6PUo="}]},"maintainers":[{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},{"name":"lo-gun","email":"Aakash.kodwani@atherenergy.com"}],"_npmUser":{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-facebook-login_1.6.3_1580464037743_0.054613300201034276"},"_hasShrinkwrap":false},"1.6.4":{"name":"@atherenergy/react-native-facebook-login","version":"1.6.4","description":"React Native wrapper for native iOS Facebook SDK login button and manager","main":"index","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/magus/react-native-facebook-login.git"},"keywords":["react","react-component","react-native","native","ios","android","facebook","login","sdk"],"author":{"name":"Yogesh Joshi","email":"iyogeshjoshi@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/atherenergy/react-native-facebook-login/issues"},"homepage":"https://github.com/atherenergy/react-native-facebook-login","peerDependencies":{"react-native":">=0.26.2","react":">=15.0.2 || ^16.0.0-0","prop-types":"^15.5.10"},"dependencies":{"itypeof":"^1.1.2"},"gitHead":"a3f652b2f158789001ec6199e56b223d17a19328","_id":"@atherenergy/react-native-facebook-login@1.6.4","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-on7yu0aMtpsFLrepdVFOXrj9oBiyxr0N8lJHaBVwOSgn2Ob0T3rx9GJwUpbYZDsjey86C13b/mxZvRvKcPATOQ==","shasum":"7ce976853af98a15c1753fd72f2783c59f52dd8b","tarball":"https://registry.npmjs.org/@atherenergy/react-native-facebook-login/-/react-native-facebook-login-1.6.4.tgz","fileCount":129,"unpackedSize":37595304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOmASCRA9TVsSAnZWagAAu0wQAIF1BsPBfvzsfspE+39c\n+Ayep+IrTs+qzpB+0TmrE3t1T6pHZSR1WkLf7Dj6u1mwqDvahR3miopKV7oe\n05qXno5Y9gj+fl1pIMGFPux0Kse4UtCxjB5VwSWU40Fa2On+a9Ks0CqQAl3S\nduOi7UNg8YloktfbT/u8dou9qiJSortNYRqR6yCInkIziT8pvgXM6MqKKgAc\nQq8mbY/AD7J5SFnxW/oR6yWWBD50mYlYyzgjwUtqc/x2HSiod1CnTbDlGjqn\n9DNpc9SaZFZA8gkh/dLDnBfhwtLXs7UyIEmaSiYnbxTAa4KF+7cy7z+yVdDs\nRpsCy8arUD/pc+mvgV6Bav3hto6eeSwF/e3CG3qpSL8qM3eaFggnzsU8TN21\npR3fCwOKaJkQ6V5DPSkQ/Ia9P6gT4urcq7XUXBpPngfKrCWEoLi7HFK7A79M\nMTqpOQV+Tbv2ifjwrvMd5RcUmd2HGn9lAjbBJsvQ4FaGr+AZ8DBgPz1ff3sv\nRmt5NBrWLTIHKhPkzxPwcC8ehd9vphO4+ZNviaetRxdNF/xQMg63GCMLzzYQ\njLEROgaBeAmS2YcsIONdIN7J+U7uLnda0hLZtoL1dNKrHrc6IDpaTIXUFWZA\nOVBXbxYh9eYBkPmWmdz3q792WonJdh3ioAkV04XzAUq+TjXKUZJRl/1ehkET\n8LwY\r\n=AkfF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhAIiPUUySpXh2IUa87cZapGpF7Hyx6W6Rkohc4nmIXQIgHe095UrKX1CGqh8XrQAFTohZjmKqYKPjz31MLELJSFk="}]},"maintainers":[{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},{"name":"lo-gun","email":"Aakash.kodwani@atherenergy.com"}],"_npmUser":{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-facebook-login_1.6.4_1580883985288_0.658366933628018"},"_hasShrinkwrap":false},"1.6.5":{"name":"@atherenergy/react-native-facebook-login","version":"1.6.5","description":"React Native wrapper for native iOS Facebook SDK login button and manager","main":"index","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/AtherEnergy/react-native-facebook-login.git"},"keywords":["react","react-component","react-native","native","ios","android","facebook","login","sdk"],"author":{"name":"Yogesh Joshi","email":"iyogeshjoshi@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/AtherEnergy/react-native-facebook-login/issues"},"homepage":"https://github.com/AtherEnergy/react-native-facebook-login","peerDependencies":{"react-native":">=0.26.2","react":">=15.0.2 || ^16.0.0-0","prop-types":"^15.5.10"},"dependencies":{"itypeof":"^1.1.2"},"gitHead":"8544587a4323d6dd1ae76ce96381c618ba70369a","_id":"@atherenergy/react-native-facebook-login@1.6.5","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gz7cX/J82J+GIEl/SRxNH6wQmjW8hEiFNA65o8gYWJuPpObP0p+vN/fxfVE7zgatcrwHWnLYRVx86sY0msqawg==","shasum":"1f6c9b53af06bd3eeea0ad013ee8aaa76f50aaac","tarball":"https://registry.npmjs.org/@atherenergy/react-native-facebook-login/-/react-native-facebook-login-1.6.5.tgz","fileCount":129,"unpackedSize":37595325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOmOtCRA9TVsSAnZWagAAFk8P/iNkXYSZ/Jkb7jGp239d\nf9PBR7A543abAJ4RyFYlktRgdlqDOFvFW1qw2u50Dujwb7//IYQmAjJjcVG7\na49I0ReVvPSBuH66ubk1MtxV8B/VznzlpDdyNDKKQQiRhFfm/yFjClLjez4+\nbyHM64dlH4VMu/doMkdbrTer0ZXKIjq5lOFD5GxHR9cVWr+9gGxCQW4tkUHl\nQqzjuGzM9079NFcs1SYJ8VEE5mOSz3g8kHy+pemk0BHfpmRgoas+TXTkVCAj\n850zenBrlmhgDW8OpR/2KdO4sWOcM54KfWZng68PuxmelXWghGiv0HeyiSoV\n8jGUQk4dn9R8uf17KYoZNgmaRDXR06SIK6AgmtiuMzgCPZaL35gSoyN8RQnJ\nyEJFGJJJhO7U7DFfG90VMX1fBomIrmOuxR0szwae1pSftxYjpo0qAJ4/cPC3\nQ3h0o0aozJZb0U/uTbePNoWTOC6tnuWvdo5Eh/RDjXrNdC9ET1ymO61Cee9N\nRR2ExUOGcqTWFZau0dER/duTePLPcPUl9nMNoOU2GKq+Xlvp9yrFBEC978Pa\nDL/u6eZDeKn04u9uxy3NZxF4chfUP+7GXq8aICgpPUVrWJZDfJltAf9AoDLt\nj/zR021E3Qmw25RmxYujy17ImxAyb07KbI2m9dsANidtO4zMifaI0wA2I0CZ\nKvaL\r\n=G4DG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8RHygx3AQ5d6qAduCQJAxsgyjqziV2oLp9D62CrTs4AiAyZrdwbAGn77IcC5qkMetejlxOr1IGPeWm6wttKz7zww=="}]},"maintainers":[{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},{"name":"lo-gun","email":"Aakash.kodwani@atherenergy.com"}],"_npmUser":{"name":"iyogeshjoshi","email":"iyogeshjoshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-facebook-login_1.6.5_1580884908829_0.32336471305535786"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-31T09:34:22.048Z","1.6.2":"2020-01-31T09:34:22.849Z","modified":"2022-09-12T04:47:58.299Z","1.6.3":"2020-01-31T09:47:18.403Z","1.6.4":"2020-02-05T06:26:25.891Z","1.6.5":"2020-02-05T06:41:49.437Z"},"maintainers":[{"email":"iyogeshjoshi@gmail.com","name":"iyogeshjoshi"}],"description":"React Native wrapper for native iOS Facebook SDK login button and manager","homepage":"https://github.com/AtherEnergy/react-native-facebook-login","keywords":["react","react-component","react-native","native","ios","android","facebook","login","sdk"],"repository":{"type":"git","url":"git+https://github.com/AtherEnergy/react-native-facebook-login.git"},"author":{"name":"Yogesh Joshi","email":"iyogeshjoshi@gmail.com"},"bugs":{"url":"https://github.com/AtherEnergy/react-native-facebook-login/issues"},"license":"MIT","readme":"# Updates on fork\n\n- The repo has updates for fetching newer version of facebook SDK's and using recommended config for Android and iOS after facebook updated policies (Sept 20, 2019)\n- Updated Target SDK for Android (SDK 28)\n- Updated corekit versions for facebook sdk in ios\n\n# Give [react-native-fbsdk](https://github.com/facebook/react-native-fbsdk) a try!\n\nThis project is no longer maintained. If you would like to maintain it, please reach out with a pull request.\n\n\n# React Native : Facebook SDK Login Button\n\n<div>\n    <a href=\"https://www.npmjs.com/package/react-native-facebook-login\"><img src=\"https://img.shields.io/npm/dm/react-native-facebook-login.svg?style=flat-square\" alt=\"NPM downloads\"></a>\n    <a href=\"https://www.npmjs.com/package/react-native-facebook-login\"><img src=\"https://img.shields.io/npm/v/react-native-facebook-login.svg?style=flat\" alt=\"NPM version\"></a>\n</div>\n\n`<FBLogin />` provides a [React Native][react-native] component wrapping the native [Facebook SDK login button](https://developers.facebook.com/docs/reference/ios/current/class/FBSDKLoginButton/) and [manager](https://developers.facebook.com/docs/reference/ios/current/class/FBSDKLoginManager/).\n\n\npreview.gif\n\n**Note**: Demo above includes debug text to confirm login (i.e. user name, email and access token). `<FBLogin />`, by default, will only display the native blue 'Log in with Facebook' button.\n\n## Table of contents\n- [Usage](#usage)\n- [Setup](#setup)\n- [Example project](#example-project)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Copyright and license](#copyright-and-license)\n\n## Usage\n\n### FBLogin\nProvides a React Native component which wraps the Facebook SDK `FBSDKLoginButton`.\n\n##### Defaults\n```js\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nvar { FBLogin, FBLoginManager } = require('react-native-facebook-login');\n\nclass Login extends Component {\n  render() {\n    return (\n      <FBLogin />\n    );\n  }\n};\n```\n\n##### Exhaustive\n```js\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nvar { FBLogin, FBLoginManager } = require('react-native-facebook-login');\n\nclass Login extends Component {\n  render() {\n    var _this = this;\n    return (\n      <FBLogin style={{ marginBottom: 10, }}\n        ref={(fbLogin) => { this.fbLogin = fbLogin }}\n        permissions={[\"email\",\"user_friends\"]}\n        loginBehavior={FBLoginManager.LoginBehaviors.Native}\n        onLogin={function(data){\n          console.log(\"Logged in!\");\n          console.log(data);\n          _this.setState({ user : data.credentials });\n        }}\n        onLogout={function(){\n          console.log(\"Logged out.\");\n          _this.setState({ user : null });\n        }}\n        onLoginFound={function(data){\n          console.log(\"Existing login found.\");\n          console.log(data);\n          _this.setState({ user : data.credentials });\n        }}\n        onLoginNotFound={function(){\n          console.log(\"No user logged in.\");\n          _this.setState({ user : null });\n        }}\n        onError={function(data){\n          console.log(\"ERROR\");\n          console.log(data);\n        }}\n        onCancel={function(){\n          console.log(\"User cancelled.\");\n        }}\n        onPermissionsMissing={function(data){\n          console.log(\"Check permissions!\");\n          console.log(data);\n        }}\n      />\n    );\n  }\n};\n```\n\n#### Login Behavior\nYou can change the [FBSDK login behavior](https://developers.facebook.com/docs/reference/ios/current/class/FBSDKLoginManager/#FBSDKLoginBehavior%20enum) of the button by including the `loginBehavior` prop on the `FBLogin` component.\n\n- `FBLoginManager.LoginBehaviors.Native`: This is the default behavior, and indicates logging in through the native Facebook app may be used. The SDK may still use Safari instead.\n- `FBLoginManager.LoginBehaviors.Browser`: Attempts log in through the Safari or SFSafariViewController, if available.\n- `FBLoginManager.LoginBehaviors.SystemAccount`: Attempts log in through the Facebook account currently signed in through the device Settings.\n- `FBLoginManager.LoginBehaviors.Web`: Attempts log in through a modal UIWebView pop up.\n\n## FBLoginManager\nWraps features of the native iOS Facebook SDK `FBSDKLoginManager` interface.\n\nSee [example/components/facebook/FBLoginMock.js](example/components/facebook/FBLoginMock.js) for an example using only the exposed native methods of the FBLoginManager to recreate the native `FBSDKLoginButton`.\n\n### Usage\n```js\nvar {FBLoginManager} = require('react-native-facebook-login');\n\nFBLoginManager.setLoginBehavior(FBLoginManager.LoginBehaviors.Web); // defaults to Native\n\nFBLoginManager.loginWithPermissions([\"email\",\"user_friends\"], function(error, data){\n  if (!error) {\n    console.log(\"Login data: \", data);\n  } else {\n    console.log(\"Error: \", error);\n  }\n})\n```\n\n## FBLoginManager.Events\nA variety of events are emitted across the React Native bridge back to your javascript components. This means you can take advantage of the `RCTDeviceEventEmitter.addListener` method to listen, and create subscribers that will execute, for each action. In fact, this is how the onEvent handlers are implemented for the FBLogin component (see [FBLogin.ios.js](FBLogin.ios.js)).\n\n### Usage\n```js\nvar RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\nvar {FBLoginManager} = require('react-native-facebook-login');\n\n...\n\nvar subscriber = RCTDeviceEventEmitter.addListener(\n  FBLoginManager.Events[\"Login\"],\n  (eventData) => {\n    console.log(\"[Login] \", eventData);\n  }\n);\n\n...\n\n// Be sure to remove subscribers when they are no longer needed\n// e.g. componentWillUnmount\nsubscriber.remove();\n```\n\n## Setup\n### [Android](/android)\n[Click here for Android setup instructions](/android/README.md)\n\n### iOS\n**Skip this step if you are using RN >= 0.60**\n```sh\nnpm install --save react-native-facebook-login\n```\n- Run ```open node_modules/react-native-facebook-login```\n- Have your react native xcode project open and drag `RCTFBLogin.xcodeproj` into your `Libraries` group.\n- Select your main project in the navigator to bring up settings\n- Under `Build Phases` expand the `Link Binary With Libraries` header\n- Scroll down and click the `+` to add a library\n- Find and add `libRCTFBLogin.a` under the `Workspace` group\n- ⌘+B\n\n**Note**: If your build fails, you most likely forgot to setup the [Facebook SDK](#facebook-sdk)\n\n#### Facebook SDK\n[Facebook : Quick Start for iOS](https://developers.facebook.com/docs/facebook-login/ios)\n\nBe sure to [configure your .plist file](https://developers.facebook.com/docs/ios/getting-started#xcode). This file is located under the `ios/<project-name>` directory of your generated react-native project. It should be in the same folder as your `AppDelegate.m` file.\n\nAs of iOS 9 you must now explicitly whitelist requests your application makes in the `Info.plist`. Be sure to [follow the instructions for iOS 9](https://developers.facebook.com/docs/ios/ios9) during the setup process.\n\n- Specifically, you will need to add the following to your `Info.plist` file\n\n```xml\n<key>LSApplicationQueriesSchemes</key>\n<array>\n        <string>fbapi</string>\n        <string>fb-messenger-api</string>\n        <string>fbauth2</string>\n        <string>fbshareextension</string>\n</array>\n```\n\n##### Adding the Facebook SDK (RN < 0.60)\n**SKIP THIS STEP IF YOU ARE USING RN >= 0.60**\n- Run `open node_modules/react-native-facebook-login/FacebookSDK`\n- Open your main project in xcode and right click on your project’s name in the left sidebar and select “New Group” and type in “Frameworks”.\n- Select all the `.framework` files in the FacebookSDK folder and click drag them into the Frameworks folder/group you just created in xcode or highlight the Frameworks group in left sidebar and go to File > Add files to \"yourProjectName\" and select the `.framework` files.\n- Select your main project in the navigator to bring up settings\n- Under `Build Settings` scroll down to `Search Paths`\n- Add the following path to your `Framework Search Paths`\n\n```sh\n$(SRCROOT)/../node_modules/react-native-facebook-login/FacebookSDK\n```\n\n<img src=\"https://raw.githubusercontent.com/magus/react-native-facebook-login/master/images/framework-search-paths.png\" alt=\"framework-search-paths\" />\n\n##### AppDelegate.m modifications\n- Add the following import statements for FBSDK kits at the top of your `AppDelegate.m`\n\n```objectivec\n#import <FBSDKCoreKit/FBSDKCoreKit.h>\n#import <FBSDKLoginKit/FBSDKLoginKit.h>\n```\n\n- Modify the application didFinishLaunchingWithOptions method to return FBSDKApplicationDelegate instead of `YES`\n\n```objectivec\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n  // ...\n  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];\n  UIViewController *rootViewController = [[UIViewController alloc] init];\n  rootViewController.view = rootView;\n  self.window.rootViewController = rootViewController;\n  [self.window makeKeyAndVisible];\n  // return YES;\n  return [[FBSDKApplicationDelegate sharedInstance] application:application\n                                    didFinishLaunchingWithOptions:launchOptions];\n}\n```\n\n- Add the following new methods after the application didFinishLaunchingWithOptions method above, before the `@end`.\n\n```objectivec\n// Facebook SDK\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    [FBSDKAppEvents activateApp];\n}\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {\n    return [[FBSDKApplicationDelegate sharedInstance] application:application\n                                                          openURL:url\n                                                sourceApplication:sourceApplication\n                                                       annotation:annotation];\n}\n```\n\n<img src=\"https://raw.githubusercontent.com/magus/react-native-facebook-login/master/images/fbsdkapplicationdelegate-methods-example.png\" alt=\"example-fbsdk-frameworks\" />\n\n## Example project\n### Toy\n```sh\nopen example/ios/examples.xcodeproj\n```\n\nSee the [example](example/) project for a working example.\n\n## Documentation\nTODO\n\n## Contributing\nJust submit a pull request!\n\nUse the simple toy project under the example directory to verify your changes.\n\n```sh\nopen example/toy.xcodeproj\n```\n\n## Contact\n[@magusnn (Twitter)](http://twitter.com/magusnn)\n\n[iamnoah.com](http://iamnoah.com)\n\n## todo\n- Auth with javascript Api as an exposed method on button\n- Clean up duplicate code in login methods\n- documentation for FBLogin component props, expected values (FB SDK links), etc.\n- expose RCT_EXPORT functions on FBLogin, docs as component method, use 'refs' to call - login/logout/getCredentials as methods via FBLogin component ref\n- writePermissions parameter for button\n\n## Copyright and license\n\nCode and documentation copyright 2020 AtherEnergy. Code released under [the MIT license](https://github.com/magus/react-native-facebook-login/blob/master/LICENSE).\n\n## Forked From\n\nhttps://github.com/magus/react-native-facebook-login\n\n[react-native]: http://facebook.github.io/react-native/\n[fb-sdk-loginbutton]: https://developers.facebook.com/docs/facebook-login/ios/v2.3#login-button\n[fb-sdk-loginmanager]: https://developers.facebook.com/docs/facebook-login/ios/v2.3#login-apicalls\n","readmeFilename":"README.md"}