Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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