Apache Cordova X Facebook Plugin: blocking by URL file

0

Hello. I have a project that is using the facebook SDK. In localhost the plugin works normally. However, when I publish the APK in google play or even compile and install the file directly on my cell phone, the facebook SDK shows me the following error:

"Unable to load URL: The domain of this URL is not included in the application domains."

The error is quite clear: the domain is not listed under "Client OAuth Settings". This is because it is only possible to specify an http or https domain (either a www domain or even localhost). However, debugging the application with chrome you can see that the application is running with a "file: //" protocol. This is not accepted in the facebook panel.

The project is currently a hybrid application written using vue.js 2. What is possible in this case? If it were possible to run the apk in the "http" protocol (example: link ) this would allow the plugin to work. Currently the configuration looks like this:

    
asked by anonymous 21.01.2018 / 23:41

0 answers