javiervd javiervd - 1 year ago 149
PHP Question

facebook api appending #_=_ to my return uri

I'm using the facebook php library to authenticate users to my app, it's working fine but for some reason facebook is appending the characters

to the end of my return uri. I read that they did this if the
parameter wasn't set but I do have it set, in fact I'm redirected to that URL successfully after I log in on facebook.

Here's how I get the login url:

$fbLoginUrl = $fb->getLoginUrl(array(
'scope' => 'email,publish_stream,user_birthday,user_photos,friends_photos',
'redirect_uri' => 'http://myapp.net/auth'

Everything works fine it's just a cosmetic thing I guess. Can anyone help me?

Thanks in advance!

Answer Source

On Facebook developer blog, it was told that, if you explicitly set the redirect_uri param, you won't get the #_=_ appended to the callback uri. But this is not the case. You still get those characters even on setting redirect_url field. But that won't have any effect on your flow.

Check this: Session Redirect Behavior - setting redirect_uri explicitely

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download