Hi guys,
I’m developing an ionic/angular application. I’m trying to implement the simple Facebook login on the device (in the browser it works). How far it works:
it opens the Facebook dialog, I can put my email/pw and hit okay. However, when it’s trying to redirect to my app, I’m getting
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin
When I’m inspecting this error message, I’m seeing my Facebook data:
<html>
<body>
<script type="text/javascript">
window.setTimeout( function ()
{
if(window.opener)
window.opener.postMessage( JSON.stringify( {<correct data>} ), 'file://' );
else
parent.postMessage( JSON.stringify( {"<correct data>} ), 'file://' );
}, 0 );
</script>
</body>
</html>
Do you have any experience with this sort of error?
thanks
Martin