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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With