You're now logged in to your Facebook account on your current device. Here, select the notification about your new login and approve it. On the device where you're logged in to your account, launch Facebook and access the notifications. On the code page, select 'Need Another Way to Confirm That It's You?' To do that, open Facebook and sign in using your login credentials.
This way, you don't need a code to be able to access your account. If you're logged in to your Facebook account on another device, like a phone or tablet, use that device to approve your login request from your current device. Approve Your Facebook Login From an Authorized Device