Use of undeclared identifier 'FBSDKLoginBehaviorNative'; did you mean 'FBSDKLoginBehaviorBrowser'? #533
Comments
same issue |
same here |
any resolution? |
Yes see #523 (comment) |
@javi10823 what is the version of your fbsdk? |
After set the SDK version to 4.42 given "Lexical or processor issue" and various issues of "Include of non-modular header" |
@iacocesar "react-native-fbsdk": "^0.8.0", |
@javi10823 and your Documents/FacebookSDK version? |
:'( it didnt work |
I don't know, How can get the version? I just download a few days ago |
@javi10823 follow https://developers.facebook.com/docs/ios/downloads |
any resolution? |
same issue |
1 similar comment
same issue |
Downgrading to earlier version of fbsdk using pods worked for me.
|
are you using |
@fsantecchia 0.8.0 |
now it throws new errors :'( |
Same issue |
[SOLVED], $(PROJECT_DIR)/../../../ios/Frameworks remove others paths if exists |
Same issue here |
Same issue si ce upgrading from react 0.56.1 to react 0.59.8 |
same issue |
it still happens :( |
This solution worked for me. But anyway, this issue should be fixed soon please |
do we know if they are trying to fix this? |
i believe i know how to fix this. i will submit a pr later this week if i was successful in fixing it on my branch |
It does not work. :(
|
Remove your podfile.lock and try again |
There have been some breaking changes in the native FBSDK this year which prevents us from using the latest version. I've decided to help the problem and integrate the latest changes with this pull request. Currently I've integrated the iOS FBSDK changes. My app builds and runs and I was able to login and obtain an access token. I'm not finished with these integrations. Here are the list of things I want to do: - double check iOS FBSDK changes to make sure I've got everything - integrate Android FBSDK similarly - document all the changes I've made - test all the affected features After I've done with these items this PR should be ready for a real review and consideration to merge it and support the latest FBSDK on both platforms. It would be great if you could try this out and confirm that it works for you too. Everything should work on iOS. I've started my branch from the latest published version which is `0.9.0`. I did this on purpose because `master` is broken currently due to `RCTComponentEvent` still being unpublished. Your feedback would be greatly appreciated. 馃檪 **[Update-2019-June-14]** This PR has been repurposed into integrating the latest FBSDK on iOS and JS only. The android part has been done in PR #546 Fixes #533
@redcancode hi! I know you dived deep into this topic, can you explain how to install react-native-fbsdk on react-native 0.59.9? I tried every pill described here, but still can't start it to work. Should I use pods or download frameworks directly? I even try to install rnfbsdk from your fork but it didn't help too. |
@elatonsev thats a good point. i too also don't want to upgrade my app to rn 0.60 yet. i'm creating a branch on my fork that will support rn v0.59 and fbsdk v5 without androidx. i think it would be a great idea to release this as a fix version, something like v0.9.1, because i think for a couple months there will be many people who don't want to jump yet. @janicduplessis will be the one who decides the release, but worst case you should be able to install it from my fork 馃檪 |
@redcancode Sure, if you can send me a branch that works on rn 0.59 I can publish it as 0.10.0. |
@janicduplessis i've created a branch on my fork that supports rn0.59 and fbsdk5. i intend to keep it up to date with upstream master up to the point when 1.0.0 goes live. currently i have the version set to 0.9.2 in package.json. i didn't wanted to update it to 0.10.0 before everything is ready. i'm not sure if i should create a PR or not. we don't really want to merge this into master. i've tested it and it works with my app which is rn0.59.4. the example app doesn't work, i left that out because i think it's not necessary :) https://github.com/redcancode/react-native-fbsdk/tree/rn59-fbsdk5 |
In case it helps anyone trying to use rn0.59 and fbsdk5, here's how I got @redcancode 's branch working on my project. The only three steps necessary are:
No need to include the pods from the fb upgrade guide, those are already included in the |
@redcancode @anthonyjoeseph I just created the 0.10.0-stable branch which is the same as https://github.com/redcancode/react-native-fbsdk/tree/rn59-fbsdk5 and published 0.10.0 to npm. |
@janicduplessis I have run npm install react-native-fbsdk@0.10.0 solution of anthonyjoeseph cannot be applied as I don't have pods and pod update not works. What shall I do? |
@yevhenpashutin Update to 0.10.1 to fix the first error and make sure you update the version of the fbsdk to 5+ to fix the 2nd |
Hi, since the last update, I've a strange behavior on Android only. I don't have this error on iOS and this code was working with the previous version using LoginManager.logInWithReadPermissions I tried to put breakpoint anywhere in the debugger, but there are never hit. `
} ` |
I updated to 0.10.1 and now I get error in file FBSDKAccessToken.a
--and make sure you update the version of the fbsdk to 5+ @janicduplessis please guide me what to do. |
@yevhenpashutin there are frameworks in the zip files. i assume |
@yevhenpashutin 0.10.1 works for me with pods. It will install 5.0.0 version of SDK. Make sure you add RCTFBSDK.xcodeproj to you Libraries and linked it. |
@elatonsev I've created pod file, added lines that you mentioned, run pod install, libRCTFBSDK appeared in Linked Frameworks and libraries itself, and now with building XCode project I'm getting 17 issues in RCTFBSDK: @interface FBSDKApplicationDelegate : NSObject - Duplicate interface definition for class 'FBSDKApplicationDelegate' @interface FBSDKButton : UIButton - Duplicate interface definition for class 'FBSDKButton' @interface FBSDKGraphRequest : NSObject - Duplicate interface definition for class 'FBSDKGraphRequest' @Property (nonatomic, copy) NSDictionary<NSString *, id> *parameters; - Property has a previous declaration and other similar issues. Before I had react-native-fbsdk 0.8.0 working with RN 0.57.3. Now I've upgraded RN to 0.60.0, during that upgrade I has issues with react-native-fbsdk so I deleted manually all I found about it. Now I run npm install react-native-fbsdk and react-native link react-native-fbsdk and got 0.10.1 version in my package.json (then did podfile steps above). What does those errors mean? How can I solve them? |
馃悰 Bug Report
Fresh install of the package... iOS build fails with:
Use of undeclared identifier 'FBSDKLoginBehaviorNative'; did you mean 'FBSDKLoginBehaviorBrowser'?
RCTFBSDKLoginButtonManager.m line 49
To Reproduce
Follow iOS install instructions
Expected Behavior
Successful build
Environment
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 236.19 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.1.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
The text was updated successfully, but these errors were encountered: