What I'm doing is a login with social networks, this works very well but I have a doubt. I leave pictures of what I do and what I'm getting to be a little more understanding. I am using js library OpenFB.js. With twitter even I can not do much but what matters to me most is that if you can do this.
This is what happens is my application :
This is what I would like to happen, to open the application installed.
If you are already logged into Facebook, you will not see the screen on the first image otherwise the screen will appear. Based on the images that you have posted, in order to see the screen on the second image, you have to be logged in. The second screen is the new login flow of Facebook where you can look at the permissions the app is requesting for and if you tap on the edit link, you can refuse certain permissions that your app is asking. Note that once you grant these permissions, you may no longer see this screen until you remove the app from your Facebook settings.