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,331 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.

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
581 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,418 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
697 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
654 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
481 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
413 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
596 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
417 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