Added working facebook auto registration and token issuance

Need to separate layers.