Facebook Connect

hey i am getting this error when trying to use facebook connect

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.

When i try to logout (after i am logged in), it redirects to facebook.com.

is there any thing have missed?