RS-61: upgraded the extension class and extended the facebook class so permissions can be parsed and checked