Carbonated drinks in cocktail shakers?
No, bartenders do not shake carbonated beverages.  I was a bartender for years and I have never known this to happen or be part of a recipe.  The carbonated sodas are always put on the top of the glass after pouring.  The foam comes from the sugar or egg whites in the sweet n sour mix.  You can find that recipe on line.  Here is one that is overly complicated, bars rarely (never to my knowledge) use fresh lemon or lime juice. However a good bar uses separate lemon &amp; lime mix for different drinks, or they used to anyway. I personally use limeade or lemonade at home.  You can use one of the other or mix them together.  Throw that in a shaker &amp; you will get some foam, it works in my blender.