In iOS simulator on a Mac OS X machine, when clicking the Log In With Facebook button under the My F8 tab, I am getting an ALERT box:
Alert:
undefined is not an object (evaluating ‘LoginManager.loginWithReadPermissions’)
This is after a fresh install and following the instructions in the Read Me. The app is running fine besides. Any idea what the issue is?
I'm getting this same issue!
Same here...
This worked for me: https://github.com/fbsamples/f8app/issues/106#issuecomment-242624950
Having this issue and the resolution above didn't work. Anyone else come across a solution?
Download fb react native sdk and then drag ios/RCTFBSDK.xcodeproj to the Libraries group:

Then add libRCTFBSDK to "Build Phases" -> "Link Binary With Libraries" (using the + button below)

@dutzi Where do you get the libRCTFBSDK to Link Binary with Libraries?
@francisngo , after adding RCTFBSDK.xcodeproj to Libraries in your project, go to Build Phases -> Link binary with Libraries -> Press '+' at the bottom of the already listed binaries. You will find 'libRCTFBSDK.a' there.
Hope this helps!
@akashnigam010 I did what you pointed but Im still getting undefined is not an object (evaluating ‘LoginManager.loginWithReadPermissions’)
The issue for me was that I installed the Facebook SDK in a non-default location on my computer (Facebook instructs you to install it under ~/Documents/FacebookSDK, but I prefer my development stuff in a different location). The react-native-fbsdk package expects the Facebook SDK to be in the default location.
To fix this, you'll have to add your SDK location to the Framework Search Paths of the RCTFBSDK.xcodeproj library which should've been added to your Xcode workspace after installing react-native-fbsdk. You may also need to manually drag FBSDKCoreKit.framework, FBSDKLoginKit.framework, and FBSDKShareKit.framework into the Frameworks group under RCTFBSDK.xcodeproj as well.
What shall I do in order to fix this issue for android? Thanks
Had the same error. For my case I put the downloaded folder FacebookSDKs-iOS-4.30.0 inside ~/Documents/FacebookSDK but instead I should have moved the content from FacebookSDKs-iOS-4.30.0 to ~/Documents/FacebookSDK
Having the same error on Android. Can anyone help me out on how to solve it?
having same error in android. how can i solve it?
@nkyadav4598 did you manage
same issue
I am having the same issue. Any Solutions ?.
Facing the same issue. Tried what @diakonos and @dutzi said. Started getting 'Build failed' without any error. Can't trace back the error.
Add meta data in manifest file and permission
On Fri, Feb 8, 2019, 11:58 AM rushi2711 notifications@github.com wrote:
Facing the same issue. Tried what @diakonos https://github.com/diakonos
and @dutzi https://github.com/dutzi said. Started getting 'Build
failed' without any error. Can't trace back the error.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fbsamples/f8app/issues/118#issuecomment-461704669,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZy1DqJoqwNAvCZnag_mZkMniFJE9651ks5vLRkbgaJpZM4J4rW-
.
Add meta data in manifest file and permission
…
On Fri, Feb 8, 2019, 11:58 AM rushi2711 @.*> wrote: Facing the same issue. Tried what @diakonos https://github.com/diakonos and @dutzi https://github.com/dutzi said. Started getting 'Build failed' without any error. Can't trace back the error. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AZy1DqJoqwNAvCZnag_mZkMniFJE9651ks5vLRkbgaJpZM4J4rW- .
Facing this issue in iOS. Not Android
Android working fine
On Fri, Feb 8, 2019, 12:51 PM rushi2711 notifications@github.com wrote:
Add meta data in manifest file and permission
… <#m_-8498116213725775590_>
On Fri, Feb 8, 2019, 11:58 AM rushi2711 @.*> wrote: Facing the
same issue. Tried what @diakonos https://github.com/diakonos
https://github.com/diakonos and @dutzi https://github.com/dutzi
https://github.com/dutzi said. Started getting 'Build failed' without any
error. Can't trace back the error. — You are receiving this because you
commented. Reply to this email directly, view it on GitHub <#118 (comment)
https://github.com/fbsamples/f8app/issues/118#issuecomment-461704669>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZy1DqJoqwNAvCZnag_mZkMniFJE9651ks5vLRkbgaJpZM4J4rW-
.Facing this issue in iOS. Not Android
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fbsamples/f8app/issues/118#issuecomment-461713521,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZy1DuXsLYfCfy72qKt4apTee3Ng_A3Bks5vLSWFgaJpZM4J4rW-
.
having same error in android with react-native 60 . how can i solve it any working solution ?
Most helpful comment
Download fb react native sdk and then drag
ios/RCTFBSDK.xcodeprojto the Libraries group:Then add libRCTFBSDK to "Build Phases" -> "Link Binary With Libraries" (using the + button below)