facebook error 'Error validating verification code'

very strange error. i use gide http://developers.facebook.com/docs/authentication/. so i create request to fb and pass redirect_uri. i use test site on localhost. so if i pass


it works fine, but if i pass


it don’t want work. i try to use

redirect_uri= . urlencode('http://localhost/test_blog/index.php?r=site/oauth2)

but not work. i try to explaine. i success get code, but when i access https://graph.facebook.com/me?access_token i get error ‘Error validating verification code’. i checked evering, error is in ?r=site/oauth2 but i need passing some params can somebody help me? i read post http://forum.developers.facebook.net/viewtopic.php?id=70855 but nothing work for me

Not working? What is the error? Could you be more specific? Can you post the error message?

i wrote that error is ‘Error validating verification code’

i want focus that problem is not in facebook but how to encode url with params

i see that we can use url rewriting like http://localhost/test_blog/index.php/site/oauth2 but it’s simply interesting how to solve the problem