I'm using omniauth-facebook gem and it works well.
But when it loads back the page on the application it adds these characters to the url:
/#_=_
How can I stop this from happening.
NOOB
I'm using omniauth-facebook gem and it works well.
But when it loads back the page on the application it adds these characters to the url:
/#_=_
How can I stop this from happening.
NOOB
Try this:
<script type="text/javascript">
if (window.location.hash == '#_=_')window.location.hash = ''; //this script removes the #_=_ from the url which is appended by facebook after login
</script>
Try this:
<script type="text/javascript">
if(window.location.hash=="#_=_") window.location.href="http://yourdomain.com/";
</script>