Heirs in Germany have the right to access the Facebook accounts of their deceased relatives, a court ruled on Thursday, saying a social media account can be inherited just as letters are.