Click the "Allow Permissions" button below then copy-paste the code and then allow the "Facebook Watch for Amazon TV" app permissions.
After allowing the permissions, you'll see a "success" page and click the "Verify & Login" button below to finish.
Enable "two-factor authentication" on your Facebook account to prevent your account from getting locked or security check.