React-native-fbsdk: No visible @interface for 'FBSDKShareOpenGraphAction' declares the selector 'initWithActionType:'

Created on 19 Jun 2019  路  11Comments  路  Source: facebook/react-native-fbsdk

react-native-fbsdk : 0.10.0 is throwing this issue.

Most helpful comment

@janicduplessis I upgraded but still getting the issue. Does it work with a specific version of facebook iOS sdk? because I upgraded that as well.

All 11 comments

have you installed react-native-fbsdk as a pod or added it as a project?

I have added it as project

You need to update the fbsdk to v5, see release notes https://github.com/facebook/react-native-fbsdk/releases/tag/0.10.0

@janicduplessis I upgraded but still getting the issue. Does it work with a specific version of facebook iOS sdk? because I upgraded that as well.

The upgrade instructions are out of date, it's a mess.

@dakoto747 did you figure it out?

Hi I am also facing the same issue. I have tried fb framework v5, v4.42, v4.39 and still getting the same error. Please help in this regard ?

Does anyone solve the problem ?

@hugoh59

@dakoto747 did you figure it out?

No, I had to revert to a previous build.

Hi, this worked for me, I encountered this error during upgrade from v0.8.0 to v0.10.1. I had to replace the ~/Documents/FacebookSDK directory with the v5 static library:

https://github.com/facebook/facebook-ios-sdk/releases/download/v5.12.0/FacebookSDK_Static.zip

My RN project is really old and I recall that the documents path was the original way to link FBSDK via manually editing Header Search Paths. Didn't bother with Pods etc.

Thank you @janicduplessis !!!!! 馃殌

Also I had to remove the Bolts framework from my "Link Binary With Libraries" section. Appears that it no longer exists in FBSDK v5.

@nabilfreeman Thank you so much. I followed your comment and it successfully updated my FBSDK and xcode built successfully.

Was this page helpful?
0 / 5 - 0 ratings