thebergamo / react-native-fbsdk-next

MIT License
633 stars 165 forks source link

Did not redirect back after login from facebook app IOS #496

Closed Jheysoon closed 3 weeks ago

Jheysoon commented 2 months ago

🐛 Bug Report

Did not redirect after login from facebook app

To Reproduce

  1. Logout of safari and facebook app
  2. Login in app -> this will redirect open a safari window and tells to open the facebook app
  3. Click Open when "Open in Facebook" dialog appears (see Image 1)
  4. Choose account to open
  5. It will be stuck in facebook app, and will not redirect to app to complete the login process (see Image 2 with Test user from facebook dashboard)

Image 1

image

Image 2

image

Expected Behavior

After logging in facebook app, it should redirect to the app and complete the login process

Code Example

In AppDelegate.mm

import <AuthenticationServices/AuthenticationServices.h>

import <SafariServices/SafariServices.h>

import <FBSDKCoreKit/FBSDKCoreKit-Swift.h>

// other imports here

@implementation AppDelegate

Environment

System: OS: macOS 13.6 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 2.82 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm Watchman: 2023.10.23.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2 Android SDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.11090377 Xcode: 15.2/15C500b - /usr/bin/xcodebuild Languages: Java: 11.0.19 - /usr/bin/javac npmPackages: @react-native-community/cli: ^10.1.3 => 10.1.3 react: 18.1.0 => 18.1.0 react-native: 0.70.15 => 0.70.15 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Elyknhoj commented 2 months ago

Facing that same issue.

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

markstreich commented 1 month ago

Same issue, react-native-fbsdk-next 12.1.2

Our facebook signups dropped ~half instantly after release