Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook api appending #_=_ to my return uri [duplicate]

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 redirect_uri 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!

like image 740
Javier Villanueva Avatar asked Jan 31 '12 03:01

Javier Villanueva


1 Answers

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

like image 200
Sudhir Bastakoti Avatar answered Oct 01 '22 23:10

Sudhir Bastakoti