No you need another code to write for the extension blocks.
With a Stencyl HTML game , you have to use Facebook HTML blocks . Stencyl can do it. I developed a game in the beginning like this. But to take the token you need also an php site for your game . A lot of different work. But can be done.