MFRC522 on Beaglebone Black
Visit How to Access Chips Over the SPI on BeagleBone Black
Has detailed instructions on how to go about using it.

Correct me if I am wrong, but you are using Userspace Arduino here. Haven't checked it up in a while, but last known status was SPI is broken on it.