Register with facebook doesnt work on mobile phones

The register with facebook doesnt work on mobile phones. The "log in to fill your data" works fine but when you click register you get error "this dialog is not available on this device". (http://prntscr.com/7bkwv4)

I googled this and SO said it was because you cannot re-direct mobile users with the javascript SDK.

How can I make this compatible with mobile phones?