In using the Facebook share dialog you can choose between a popup and a full page share screen. If I choose popup it will still do a full page share screen if user is on a mobile. So is there a way through the SDK I can figure out whether the user is on mobile and the full page share screen will be used?
This is my Javascript for sharing:
FB.ui({
    method: 'share',
    href: 'https://myserver.com/',
},
function(response) {
    if (response && !response.error_message) {
        // handle success
    } else {
        // handle error
    }
});
This question only provides generic and ambiguous answers at best. I need a solution that is specific for the Facebook Javascript SDK - to match its behaviour 100%.
