Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This article describes how to use hook_process_html() to customize the node info when you embed your page into Facebook or other sites.
Is this still the best way to go or are there other ways?
I would use the Meta Tags module. It makes the Facebook Open Graph information easy to update and configurable per node, if necessary.
Required, but never shown