You can finally decide what happens to your Facebook account when you die.

In a change of heart, the world’s most popular social network will begin allowing its members to designate someone—what they call a “legacy contact”—to manage parts of their accounts posthumously. Members can also choose to have their presence deleted entirely.

Facebook...