You have completed the steps described in
especially that you need to change your application settings using
Settings> Advanced> OAuth Settings> Device Login
to 'Yes' ? I think this may be the reason. In addition, have you included any platforms in the application settings?
source share