I\'m trying to connect to the LinkedIn API but everytime I try to access it I get the following error:
Fatal error: Class \'OAuth\' not found in /home/vh
OAuth is a PECL extension it must be compiled into PHP or compiled as an extension.
Most servers will not have it by default since it really is not something everyone would likely use. You can ask your host to either install it or if you have the ability compile it on server if using CGI as I did. If you run phpinfo(); and look for the word OAuth it will show up if you have it, otherwise you don't.
Update: Use https://github.com/Lusitanian/PHPoAuthLib instead of a PECL.