Ive been looking into this issue for so long and came into the conclusion that its impossible to use Facebook api with itch.io, if you need facebook integration dont waste your time and find a different hosting service, there are a bunch of free services you can you and will immediately work facebook login.