I was expecting the FBLogin onclick to run the below query, but noting is happening. What have I missed which means this isn't working as expected?
I believe this is an issue with my onlick event and not the function itself.
<a href="#" onclick="FBLogin();"
role="button" class="btn btn-successFbLi btn-lg fa fa-facebook"</i>
Sign in with Facebook</a></button><br>
Function
function FBLogin() {
//Fb app information//
window.fbAsyncInit = function() {
Parse.FacebookUtils.init({
appId : 'xxxxxxxxx',
xfbml : true,
version : 'v2.3'
});
//rest of function here etc//
}