Facebook callback has started appending #_=_
hash underscore to the Return URL
Does anyone know why? What is the solution?
Facebook callback has started appending #_=_
hash underscore to the Return URL
Does anyone know why? What is the solution?
if you want to remove the remaining "#" from the url
Adding this to my redirect page fixed the problem for me ...
A workaround that worked for me (using Backbone.js), was to add "#/" to the end of the redirect URL passed to Facebook. Facebook will keep the provided fragment, and not append its own "_=_".
Upon return, Backbone will remove the "#/" part. For AngularJS, appending "#!" to the return URL should work.
Note that the fragment identifier of the original URL is preserved on redirection (via HTTP status codes 300, 301, 302 and 303) by most browsers, unless the redirect URL also has a fragment identifier. This seems to be recommended behaviour.
If you use a handler script that redirects the user elsewhere, you can append "#" to the redirect URL here to replace the fragment identifier with an empty string.