Check the setting on LinkedIn site, it looks like you didn't specify redirect URL or provided wrong URL