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

v1.1.1 can not link "Deferred Deep Link" in IOS #680

Open blackbing opened 4 years ago

blackbing commented 4 years ago

🐛 Bug Report

I upgraded react-native@0.60 and use react-native-fbsdk@1.1.1 but I found "Deferred Deep Link" is not worked. Finally I changed the IOS sdk version and it works.

To Reproduce

yarn add react-native-fbsdk and follow deferred Deep Link

And Deferred Deep Link is not worked.

this is patch react-native-fbsdk+1.1.1.patch

diff --git a/node_modules/react-native-fbsdk/react-native-fbsdk.podspec b/node_modules/react-native-fbsdk/react-native-fbsdk.podspec
index c3c43ff..14262c7 100644
--- a/node_modules/react-native-fbsdk/react-native-fbsdk.podspec
+++ b/node_modules/react-native-fbsdk/react-native-fbsdk.podspec
@@ -14,17 +14,17 @@ Pod::Spec.new do |s|
   s.dependency      'React'

   s.subspec 'Core' do |ss|
-    ss.dependency     'FBSDKCoreKit', '= 5.8'
+    ss.dependency     'FBSDKCoreKit', '~> 5.6.0'
     ss.source_files = 'ios/RCTFBSDK/core/*.{h,m}'
   end

   s.subspec 'Login' do |ss|
-    ss.dependency     'FBSDKLoginKit', '= 5.8'
+    ss.dependency     'FBSDKLoginKit', '~> 5.6.0'
     ss.source_files = 'ios/RCTFBSDK/login/*.{h,m}'
   end

   s.subspec 'Share' do |ss|
-    ss.dependency     'FBSDKShareKit', '= 5.8'
+    ss.dependency     'FBSDKShareKit', '~> 5.6.0'
     ss.source_files = 'ios/RCTFBSDK/share/*.{h,m}'
   end
 end

and it works.

Expected Behavior

The above is my workaround.

I have tried to use the latest SDK but, it will build fail. It might related to https://github.com/facebook/react-native-fbsdk/issues/676, so I tried to downgrade it.

Agby commented 4 years ago

Having the same issue.

Dylan0916 commented 4 years ago

+1

kasterlod commented 4 years ago

+1

lch9487 commented 4 years ago

+1

tgensol commented 4 years ago

+1