You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
16.2
Facebook iOS SDK version
13.2.0 & 17.1.0
Dependency Manager
Prebuilt Binaries
SDK Framework
Login
Goals
Players can sign in to my app with their Facebook accounts.
Expected results
Login succeed
Actual results
Over the past two months, we have been receiving more than 10 daily reports from players who are unable to log into our app via Facebook. Most of these issues occur on iPad devices, spanning iOS versions from 12 to 18, and the total number of affected players has now exceeded 150. I was able to reproduce this issue myself on an iPad mini 2 running iOS 12.5.5. When a player attempts to log in, the Facebook SDK opens Safari to load login.facebook.com, but it gets stuck in an infinite loop of redirections. Eventually, Safari displays the error: "Safari can’t open the page because too many redirects occurred."
I tried switching to a different Facebook App ID and upgraded the SDK to version v17.1.0. I also wrote a minimal example code for Facebook login, but the issue still persists on the same iPad mini 2 device. This suggests that the problem is unrelated to the Facebook App ID or the version of the Facebook iOS SDK. My suspicion is that the issue is specific to certain iPad devices, possibly due to the login.facebook.com webpage entering an infinite loop of redirections based on the user agent. When the number of redirections exceeds the limit, Safari stops loading the Facebook webpage altogether.
Steps to reproduce
It seems like the issue is easily reproducible across multiple iPad devices. If you test on several iPads (especially older models or those running specific iOS versions), you might consistently encounter the same problem where the Facebook login process results in an infinite redirection loop and ultimately fails with the "too many redirects" error in Safari.
Checklist before submitting a bug report
Xcode version
16.2
Facebook iOS SDK version
13.2.0 & 17.1.0
Dependency Manager
Prebuilt Binaries
SDK Framework
Login
Goals
Players can sign in to my app with their Facebook accounts.
Expected results
Login succeed
Actual results
Over the past two months, we have been receiving more than 10 daily reports from players who are unable to log into our app via Facebook. Most of these issues occur on iPad devices, spanning iOS versions from 12 to 18, and the total number of affected players has now exceeded 150. I was able to reproduce this issue myself on an iPad mini 2 running iOS 12.5.5. When a player attempts to log in, the Facebook SDK opens Safari to load login.facebook.com, but it gets stuck in an infinite loop of redirections. Eventually, Safari displays the error: "Safari can’t open the page because too many redirects occurred."
I tried switching to a different Facebook App ID and upgraded the SDK to version v17.1.0. I also wrote a minimal example code for Facebook login, but the issue still persists on the same iPad mini 2 device. This suggests that the problem is unrelated to the Facebook App ID or the version of the Facebook iOS SDK. My suspicion is that the issue is specific to certain iPad devices, possibly due to the
login.facebook.com
webpage entering an infinite loop of redirections based on the user agent. When the number of redirections exceeds the limit, Safari stops loading the Facebook webpage altogether.Steps to reproduce
It seems like the issue is easily reproducible across multiple iPad devices. If you test on several iPads (especially older models or those running specific iOS versions), you might consistently encounter the same problem where the Facebook login process results in an infinite redirection loop and ultimately fails with the "too many redirects" error in Safari.
Code samples & details
The text was updated successfully, but these errors were encountered: