I can not authenticate with facebook from ios

0

I follow the official documentation of the plugin: cordova-plugin-facebook4 and the only thing I have to do is get the id of my application and the name from facebook developers :

and execute the command:

cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="380....." --variable APP_NAME="TI...."

for android I have this configuration:

I managed to get the key hash and it works. but for it to work I had to edit this file:

platforms\android\app\src\main\res\values\strings.xml  

and I added these lines, if I do not add them it does not work:

<string name="fb_app_id">380...</string>
<string name="fb_app_name">TI...</string>

works like this: any user can be authenticated by facebook, but strangely am, I was the developer, he asks me the key hash generado , if I do not add it allows to authenticate any user except me, therefore I added the key hash . (But I do not care because it works for me)

So I have the settings for ios :

To try to prove it I am using a virtual machine of mac and use xcode to compile and test my application, but when I try to click on the button of authentication by facebook, the web browser opens with a page facebook website (I do not have the app), with this error:

in Android I do the same procedure, I do not have the facebook app and the web browser loads with facebook, authenticates me and redirects me to my app once authenticated. in IOs does not work.

this is shown by the XCODE console:

this is my config.xml

enter the description of the image here

What can I do?

    
asked by yavg 13.06.2018 в 05:11
source

0 answers