I am developing an UWP App that it works as a Web App for a WordPress Blog.
In that site the OneAll plugin is installed and configurated for the social network integration.
My problem is:
I am not able to get the WordPress authentication working after the login with a social network.
The process that I follow is below
1. login with the social network SDK (for example Facebook). In this way I get an access_token;
2. import the user in OneAll site (with a PUT to https://mydomain.api.oneall.com/users.json
). The PUT succeeded without any problem and the user is registered;
3. in the case of Facebook, I have sent a GET request to https://mysite/api/user/fb_connect/?access_token=
in order to tell to WordPress that the user is logged in with a social network. This call returns with success and I get a wp_user_id and the other data.
It is seems all right, but when I try to check if I am really logged in (with the request to http://mysite/wp-json/wp/v2/users/me
), I get that I'm not connected... and it is true!
In fact, I am not able to post any comments or do anything that require authentication.
I think that I need to validate the access token or get a connection token in some way.
What it is missing?