Facebook iOS 9 SDK login redirects to mbasic facebook com on Safari

0 votes

I'm using the iOS 9 Facebook SDK to manage login. Prior to iOS 9, the process worked perfectly. It worked like this:

1) user taps on the Log In Via Facebook button on my app
2) user gets redirected to the Facebook app if the app is installed, otherwise redirected to Facebook's page on Safari
3) user authorizes my app's access to his/her Facebook credentials and redirects back to my app to complete login

However in iOS 9, according to this SO post the default behavior is that in step 2), user will be redirected to his/her Facebook page on Safari instead. This behavior causes the following issue that's quite frustrating:

A particular user has his/her Facebook page defaulted to mbasic.facebook.com, and when the user clicks on Log In Via Facebook on my app, it opens up Safari under the mbasic.facebook.com URL, and it shows the user's Facebook Home view with activity feeds rather than the app authorization page where the user can authorize my app. In this case, the user would have to:
1) Log out of his/her Facebook account;
2) Open my app, and click on the Log In Via Facebook button;
3) Safari opens up facebook.com and user will need to first log in his/her Facebook account and then authorize my app

This is A LOT to ask from the user. My question are:
1) How did the user get defaulted to the mbasic.facebook.com page instead of facebook.com?
2) Is there anything that we can do in the Facebook iOS 9 SDK setting to override this redirect to mbasic.facebook.com and instead have it redirect to facebook.com like before?

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,511 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Me account been another locked
answered Dec 4, 2022 by Deepak Yadav

edited 6 days ago
0 votes
Turns out if the user does not have JavaScript enabled on mobile Safari, Facebook will redirect you to the mbasic.facebook.com site and prevent the user from logging in to your app via Facebook. There's probably not much we can do with the Facebook iOS SDK to override that. We'll just have to remind the user to enable JavaScript on Safari.
answered Dec 12, 2022 by gaurav
• 23,260 points

edited 6 days ago

Related Questions In Mobile Development

0 votes
0 answers

How to open app from Twitter for iOS WebView on iOS 9

My question pertains to deeplinking from a ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
657 views
0 votes
0 answers

Can't play video on iOS in Safari: NotAllowedError

When I click a play button on ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,547 views
0 votes
0 answers

How to login to a site using POST request? (Swift,iOS)

I want to create an iOS Application ...READ MORE

Nov 9, 2022 in Mobile Development by gaurav
• 23,260 points
744 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

Flutter project in iOS emulator takes forever to run, but its worked on Android emulator

Try flutter clean and flutter build ios ...READ MORE

answered Nov 18, 2022 in Mobile Development by gaurav
• 23,260 points
784 views
0 votes
1 answer

iOS Post to Facebook shows m.facebook.com

From your Feed, tap Search Facebook at ...READ MORE

answered Nov 4, 2022 in Others by gaurav
• 23,260 points
550 views
0 votes
0 answers

iOS Post to Facebook shows m.facebook.com

My iOS app is posting an in-app ...READ MORE

Sep 23, 2022 in Others by gaurav
• 23,260 points
540 views
0 votes
0 answers

touch.facebook.com on iPhone giving me "Entity 'nbsp' not defined"

Thanks to Logan and this url structure, ...READ MORE

Sep 27, 2022 in IOS by Soham
• 9,710 points
692 views
0 votes
0 answers

Facebook log in keep redirecting in iOS

I have an Unity application using Facebook ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
493 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP