Updated facebook script to use token collection