I think you should go visit this site:
http://developers.facebook.com/[
^]
Should be able to find out why it isn't working properly.
Otherwise you should really post some of your code, as we cant see what you have done wrong by the description you have posted.