Compatible with latest Twitter API

Added additional parameter in 3rd API call for compatibility with Twitter's latest API
Fixed PHP deprecation issue
Code has been tested in signing into twitter and retrieving feeds