Facebook iOS app does not redirect to mobile Safari after fbauth //

Does anyone know how to change the fbauth: // settings to redirect to mobile Safari?

More details:

We have a mobile optimized website with Facebook integration. When using Facebook client side authentication, the user is redirected to m.facebook.com for the Facebook application to request permissions. We would prefer that instead the application for the native iOS application Facebook be opened and after the user has granted permission in the Facebook application, redirect back to mobile Safari.

To get the first half of this work, we looked into the Facebook iOS SDK and found that this URL scheme launches its own iOS application to authorize the application:

fbauth://authorize?redirect_uri=http%3A%2F%2Fwww.ourcompany.com%2F&client_id=126187084187632&response_type=token 

However, as soon as our Facebook application gets access to the user, the redirect will never happen.

Is there a known way to configure query parameters to trigger a redirect?

If there is no parameter that can be set so that the user is redirected to the application tab or canvas page after authorizing the application?

+6
source share
1 answer

It's impossible; I think this is due to the fact that the application in the native language of Facebook cannot send the user after entering the same safari tab with which the request arose, it may not work with the auth stream in other ways, I'm not sure

No matter what, Safari webapp -> Facebook native app -> Safari Webapp

If your application is also native and iOS information is present, you can go to Safari Webapp β†’ the native facebook application β†’ your own app / app store, though

+1
source

Source: https://habr.com/ru/post/919252/


All Articles