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

So what's the new installation process with version 5 of the fbsdk now? #593

Open hugoh59 opened 5 years ago

vvusts commented 5 years ago

Also interested in this topic. I downloaded SDK from https://github.com/facebook/facebook-objc-sdk and planned to put it in ~/Documents/FacebookSDK (where I currently keep SDK) but in this there are no Bolts, FBSDKCoreKit and FBSDKLoginKit framework files. So by the documentation there is nothing to drop to framework folder. I got same files if I try to install SDK via cocapods. Any help on this?

vvusts commented 5 years ago

Ok to be honest I don't understand fully what I just did :) but if it is wrong somebody correct me: I downloaded latest SDK from https://github.com/facebook/facebook-objc-sdk and int terminal enter to that folder and executed command: carthage build --no-skip-current before that I installed carthage by using brew https://github.com/Carthage/Carthage. Then in the build folder (Carthage/Build/iOS) I got *.framework files that I need. I removed old and from project in xcode (including bolts) and added CoreKit and LoginKit (bolts seems not need anymore). I recompiled projecd and I still can use FB login. Hope it helps.

smooJitter commented 5 years ago

@vvusts did it work? Still can’t believe the maintainers are so hands off with this, particular consider this package appears to be the officially recommended package.

The installation instructions are bad

janicduplessis commented 5 years ago

The recommended way to install this is using cocoapods. Sadly no-one is really maintaining this package so feel free to send doc prs and I will gladly merge them.