Please refer to this tutorial: https://www.drupar.com/custom-shortcodes-set-two/fontawesome-font-icons