You are confusing. Yahoo and Facebook are two separate thing and they are not connected.
When you try to access your Yahoo account, what message are you getting?
Explain what you mean when you say that someone changed all your details on Facebook. What are details as they is no details tab on a Facebook account.
Being courteous will increase your chances of getting the help you need.