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 910 forks source link

Help to get started #739

Closed resting closed 4 years ago

resting commented 4 years ago

Following this instruction to setup on vanilla react native project https://developers.facebook.com/docs/react-native/configure-ios/#ios-project-configuration

It says to follow this quick start guide, but links to an empty page: https://developers.facebook.com/quickstarts/?platform=ios

Following the readme on this repo, it says to follow steps 3 and 4 of https://developers.facebook.com/docs/ios/getting-started/

Have done step 3, but and step 4's AppDelegate.m update but it's not detecting FBsdk files on this line #import <FBSDKCoreKit/FBSDKCoreKit.h> obviously since its not linked.

So how do I get started?

RN: 0.62.0 RNFBDSK: 1.1.2 Xcode: 11.4

resting commented 4 years ago

Well, I figured for iOS you'd need to do cd ios && pod install after installing the npm package.

And use FBSDKApplicationDelegate instead of ApplicationDelegate from the sample code provided (Xcode should suggest this).