write code, but cannot do twitter auth and facebook auth