thebergamo / react-native-fbsdk-next

MIT License
693 stars 167 forks source link

[IOS] Missing 'Cancel' and 'Continue' buttons when login by FB app #533

Closed hienhodeveloper closed 3 months ago

hienhodeveloper commented 5 months ago

🐛 Bug Report

When I log in with the Facebook app for the first time, 'Cancel' and 'Continue' buttons are missing, UI like broken, and I can't scroll either. This bug also happen when request Connect to FB Pages

Permissions Requests (FB allowed these): ["pages_messaging", "pages_manage_metadata", "pages_read_engagement", "pages_show_list", "pages_manage_engagement", "pages_read_user_content", "pages_manage_posts", "public_profile", "email"]

image

To Reproduce

Run this code with these permissions

LoginManager.logInWithPermissions(
      permissions || [
        'pages_messaging',
        'pages_manage_metadata',
        'pages_read_engagement',
        'pages_show_list',
        'pages_manage_engagement',
        'pages_read_user_content',
        'public_profile',
        'email',
      ],
    )

Expected Behavior

Show Cancel' and 'Continue' buttons, UI not broken

Environment

IOS only "react-native": "0.71.14", "react-native-fbsdk-next": "^13.0.0"

AndersonGuerraSantos commented 5 months ago

This happens to me when I am not logged into Facebook on Safari.

sufian1999 commented 5 months ago

Yes. This also happens with me when I try to login or connect with FB pages. I also tried to downgrade the sdk version for ios but couldn't do so.

manhdev0901 commented 5 months ago

This only happens when logging in through the Facebook app. I have a temporary solution for iOS: You need to log in to Facebook via Safari first, and then log in again. This time, the login on Safari will show two options: 'Cancel' and 'Continue'. If there are any other solutions, please leave a comment below and I will read it.

sufian1999 commented 5 months ago

@manhdev0901 Well, there is one more but that's not a good one. The user must delete the FB app and then the user can enter credentials in the modal provided by the FB SDK. There buttons won't hide.

I tried an app called Privyr, they also implemented the FB integration. There, FB SDK UI is of the previous version. But I couldn't find a way to downgrade the FB SDK for ios. I tried to set a version for FB SDK in the podfile but it gives errors when I do 'pod install'.

naveedAhmed007 commented 5 months ago

I also have faced this issue.

sufian1999 commented 4 months ago

@hienhodeveloper The issue is resolved with the latest Facebook App. But if the user wants to connect pages and there are many pages then the last one can't be selected because it goes down. Check on your side.

stale[bot] commented 3 months 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.