cordova-plugin-facebook-connect / cordova-plugin-facebook-connect

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
63 stars 90 forks source link

Breaking with Capacitor 4.0 / Ionic 6 #121

Open iamromec opened 1 year ago

iamromec commented 1 year ago

It's breaking and we're unable to install it with the cap 4.0 project.

Screenshot 2022-08-13 at 7 59 15 PM
javierjsp commented 1 year ago

Hello, Remember that if you are working with Capacitor as Core, you can not perform "ionic cordova plugin add ---" (because this command is when you use Cordova as Core) you must install it directly via npm "npm i cordova-plugin-nnnn-nnnn".

In the Ionic page, you have some tabs that tell you which way to install for each Core. image

iamromec commented 1 year ago

@javierjsp variables are unsupported via npm i and it's required by this plugin.

javierjsp commented 1 year ago

@iamromec well in this case as far as I understand, you can manually change the variables that the plugin uses before compiling, they are located in the following path

"platforms\android\app\src\main\res\values\facebookconnect.xml"

but my recommendation would be that if you are working with capacitor you use directly the capacitor community plugin.

https://github.com/capacitor-community/facebook-login

I hope it helps you at least a little bit :)

selcuk-sahin commented 1 year ago

We can use cordova variables in capacitor config file: under capacitor config.ts or json:

 cordova: {
    preferences: {
      APP_ID: "YOUR_APP_ID",
      APP_NAME: "YOUR_APP_NAME"
    }
  }
mobileias commented 12 months ago

Hello

we are using this plugin into our capacitor apps

but one app fine and once we try into another app then it says error like

error: INSTALL_FAILED_CONFLICTING_PROVIDER:

because we see cordova variable needed while installing plugin and based on variable it create authorities for .xml

but in capacitor it not works

does anyone help us how to fix it

Thank you