facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 907 forks source link

Getting issue on "RCTFBLoginButton" #631

Open Mr-Bhardwa7 opened 5 years ago

Mr-Bhardwa7 commented 5 years ago

🐛 Bug Report

I'm working on social login on IOS but I'm getting error on my build (Xcode) when I linked react-native-fbsdk package as

Screenshot 2019-08-27 at 7 20 18 PM

and when I unliked react-native-fbsdk from my package then my build is successfully created on Xcode but I got error on react-native as

Screenshot 2019-08-27 at 7 31 27 PM

Note : I followed this video as an reference to configure iOS https://www.youtube.com/watch?v=gILdNvKZ_OY

and here my code for login button

<LoginButton readPermission={['public_profile']} onLoginFinished={ (error, result) => { if(error){ alert("Login failed with error : " + result.error) } else if (result.isCancelled) { alert("Login was cancelled"); } else { alert("Login was successful with permission : " + result.grantedPremissions) } } } onLogoutFinished={() => alert("User Logged out")} />

Anyone here to help me out. Thanks in advance