Whenever I clicked on "Authorise" button, it opened a popup and collected permissions then just printed "error" and did nothing. Here is shot attached: