Failed to install 'cordova-plugin-facebook4 Windows

PS F:\ionicApps\Somen> ionic cordova platform add android --save

cordova.cmd platform add android
(node:13732) ExperimentalWarning: queueMicrotask() is experimental.
(node:13732) ExperimentalWarning: The fs.promises API is experimental
Using cordova-fetch for cordova-android@^9.0.0
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ionicframework.coenq
Activity: MainActivity
Android target: android-29
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@9.1.0
Installing “cordova-plugin-console” for android
Installing “cordova-plugin-device” for android
Installing “cordova-plugin-facebook-connect” for android
Subproject Path: CordovaLib
Subproject Path: app
Installing “cordova-plugin-facebook4” for android
Error during processing of action! Attempting to revert…
Failed to install ‘cordova-plugin-facebook4’: CordovaError: Uh oh!
“F:\ionicApps\Somen\platforms\android\app\src\main\res\values\facebookconnect.xml” already exists!
at copyNewFile (F:\ionicApps\Somen\platforms\android\cordova\lib\pluginHandlers.js:231:45)
at install (F:\ionicApps\Somen\platforms\android\cordova\lib\pluginHandlers.js:34:17)
at ActionStack.process (F:\ionicApps\Somen\node_modules\cordova-common\src\ActionStack.js:56:25)
at PluginManager.doOperation (F:\ionicApps\Somen\node_modules\cordova-common\src\PluginManager.js:112:24)
at PluginManager.addPlugin (F:\ionicApps\Somen\node_modules\cordova-common\src\PluginManager.js:142:21)
at F:\ionicApps\Somen\platforms\android\cordova\Api.js:161:78
Uh oh!
“F:\ionicApps\Somen\platforms\android\app\src\main\res\values\facebookconnect.xml” already exists!

Have you already try to install other Facebook plugin? before you try cordova-plugin-facebook4

this error shows you added facebook before, can share what command you did use for add facebook platform?

remove android platform and facebook plugin then add android platform and add facebook plugin again with some command like

ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID=887674715327747 --variable APP_NAME=titanumall

change your APP_ID and APP_NAME

i have an app for sell and recorded this video to show users how to add social login facebook to app. i hope it will help you