How to Integrate Login With Facebook in Chrome Extension

In a web app, we can easily integrate Facebook login using React wrappers, which makes the process straightforward. However, this approach doesn’t work the same way for browser extensions since extensions don’t have a traditional URL (like localhost or a live URL). Therefore, we need to set up everything manually. Could you please provide a script for that?