How to store the fbcookie under subdomain

Hi

i want to use fbconnect, i m put code under the path www.example.com/subfolder/, i had given the site url is www.example.com/subfolder in FB app settings , while i am click the fblogin button it will take me to the login dialog box after successful login,it will not redirect me to the redirect url which was given in the request. i had checked , fbcookie values are store under the www.example.com instead of www.example.com/subfolder/ . so how to store the fbcookie values under the subfolder path?