Also make sure that the site URL you've generated key&secret for, exactly matches your local site URL, including protocol.