facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.8k stars 3.56k forks source link

Facebook Login using SDK 17.0.0 always displays a limited login warning #2389

Closed Sireikis closed 7 months ago

Sireikis commented 7 months ago

Checklist before submitting a bug report

Xcode version

15.3

Facebook iOS SDK version

17.0.0

Dependency Manager

SPM

SDK Framework

Login

Goals

I want to continue using the classic login method that provides an access token for GraphAPI requests and not see a red limited login warning as part of the user login flow.

Expected results

The user does not see a red limited login warning as part of the user login flow and the token we receive from the facebook login request allows us to make Graph API requests.

Actual results

The user sees a red limited login warning as part of the user login flow and the access token we receive from the facebook login request does not allow us to make Graph API requests on our backend.

I'm very confused as to what is causing the red warning to appear. I've uploaded to Testflight in an attempt to see if environment mattered, but it was present on our production pre release build as well.

Screenshot 2024-04-18 at 9 40 50 AM

Steps to reproduce

Updated to Facebook SDK 17.0.0 from 15.1.0. The red warning appeared immediately, regardless of which login method I attempted to use (classic, limited, limited with tracking enabled) and the token returned was invalid.

Code samples & details

I also get the same error as in this task #2365. I don't see anyone mention the red warning however.

fgeracitano commented 7 months ago

Hi @Sireikis, for us the login warning appears for test users (those added via the Facebook Developer Console). However, when we use profiles that are not designated as test users, we don't see the warning but are unable to proceed. https://github.com/facebook/facebook-ios-sdk/issues/2387

Sireikis commented 7 months ago

Hello @fgeracitano, looks like that's what was causing the red warning, thanks for that tip! Since my other issue is a duplicate of existing issues I'll close this issue.