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

Is downloading facebook sdk and saving in Documents folder not required in iOS ? #705

Open adkaushik opened 4 years ago

adkaushik commented 4 years ago

🐛 Bug Report

After upgrading to react-native v0.60, and when trying to update react-native-fbsdk, I used cocoapods and followed the steps included in the readme.md and also steps 3 and 4 of facebook's getting started documentation. However, I contantly get 'FBSDKLoginKit/FBSDKLoginKit.h' file not found when building the project. Should the facebook sdk be downloaded and included in the documents folder aswell ?

Environment

System: OS: macOS 10.15.1 CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz Memory: 152.70 MB / 8.00 GB Shell: Unknown Binaries: Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.0 => 0.60.0 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

gitforanand commented 4 years ago

add this in you podfile pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit' pod 'FBSDKShareKit' pod 'FBSDKPlacesKit'

gmertk commented 4 years ago

All you need to do:

yarn add react-native-fbsdk
cd ios/ && pod install

which will install FBSDKCoreKit and its friends.

alexpchin commented 4 years ago

Hello, just a note that this is still quite unclear in the README. If you do not add anything to your podfile, do you need to download FacebookSDK and add it into ~/Documents or will running cd ios/ && pod install be sufficient?