This post goes through an example from commerce JSP to generate, FaceBook meta tags. The code snippet below prints the meta tags for 2 different kinds of commerce product types, Items and Packages. Based on the type of the product, a different commerce data bean is selected.