FacebookProvider implemeted with exception handling and example codes