This would make it easier to implement the Facebook login into other parts of the sites such as Pricing Tables which currently look weird when using the shortcode: http://rivetworks.wpengine.com/upgrades-and-pricing/
Reading some of the API documentation and it looks like I need to implement the do_login function on a button click to pop up the Facebook auth window.
This is the complete direct link I am using: https://rivetworks.api.oneall.com/socialize/connect/direct/facebook/&service=social_login&callback_uri=https%3A%2F%2Frivetworks.wpengine.com%2F
Now please open the file "/includes/user_interface.php" of the Social Login plugin of your WordPress and then replace every $_POST by $_REQUEST That should do the trick!
Answers
_oneall.push(['social_login', 'do_login', 'facebook']);
Can I do this with the javascript already loaded from the WordPress Plugin?
Can we add a shortcode that would bypass the iframe and just go right to the Facebook auth?
And once again, I want to have my own button or link, that when clicked opens the Facebook auth.
I think that you for your needs the following feature would be better:
http://docs.oneall.com/services/direct-connect/
You can fully customize the button and/or automatically forward the user to the Facebook auth.
Regards,
I am not a coder but very good and copy & paste ;-)
no, you do not need to rewrite the callback function. The one includes in the WordPress plugin will do the job!
Regards,
I tried: https://rivetworks.api.oneall.com/socialize/connect/direct/facebook/&service=social_login&callback_uri=https://rivetworks.wpengine.com/wp-content/plugins/oa-social-login/includes/communication.php
and
https://rivetworks.api.oneall.com/socialize/connect/direct/facebook/&service=social_login&callback_uri=https://rivetworks.wpengine.com/wp-content/plugins/oa-social-login/oa-social-login.php
But get "Not Found
The requested URL /socialize/connect/direct/facebook/&service=social_login&callback_uri=https://rivetworks.wpengine.com/wp-content/plugins/oa-social-login/oa-social-login.php was not found on this server. "
I think I am close though!
could you try to use the main page of your blog as callback uri?
https://rivetworks.wpengine.com/
Regards,
Not Found
The requested URL /socialize/connect/direct/facebook/&service=social_login&callback_uri=https://rivetworks.wpengine.com/ was not found on this server.
the value needs to be url-encoded, it should look like this:
https%3A%2F%2Frivetworks.wpengine.com%2F
This is the complete direct link I am using:
https://rivetworks.api.oneall.com/socialize/connect/direct/facebook/&service=social_login&callback_uri=https%3A%2F%2Frivetworks.wpengine.com%2F
the first parameter in an URL needs to be preceded by a ?
Please replace
&service=
by?service=
https://rivetworks.wpengine.com/test-rich/
Also, is there a way to make the Facebook login open in a modal?
ok, that's already a great thing
Now please open the file "/includes/user_interface.php" of the Social Login plugin of your WordPress and then replace every
$_POST
by$_REQUEST
That should do the trick!