Germany's Federal Court of Justice has ruled the parents of a deceased girl can access her Facebook account.