Hello,

After I click on connect, weird characters are added to my site url like this

mysite.com//#_=_

Comments

LGLC’s picture

Status: Active » Closed (works as designed)

This is due to a bug in the Facebook API and nothing to do with this module. See comment #1 on #1314940: Set Custom Landing Page URL for Login and Register.

jmagunia’s picture

Issue summary: View changes

This JavaScript code is something to consider. It removes everything but the '#'. I'm not sure but it may trigger a page refresh.

if (window.location.hash == "#_=_")
{
    window.location.hash = "";
}

If you're caching JavaScript, be sure to flush caches after the adding the code to a custom module.

DocRPP’s picture

Facebook officially declared that they will be adding these wierd charecters at the end of the url, and that app developers please be ready to handle that. I forgot where I saw that, though.

jduhls’s picture

I don't use this module, but this facebook oauth "feature" breaks drupal ajax-enabled form elements. the javascript above fixes.

From https://developers.facebook.com/blog/post/552/ :

Change in Session Redirect Behavior:
This week, we started adding a fragment #_=_ to the redirect_uri when this field is left blank. Please ensure that your app can handle this behavior.

noopal’s picture

I tried for hours to remove the appended code.
It was finally resolved buy the script in #2.

Thanks