philsturgeon / codeigniter-oauth2

NO LONGER ACTIVELY MAINTAINED. USE https://github.com/thephpleague/oauth2-client INSTEAD
http://getsparks.org/packages/oauth2/versions/HEAD/show
351 stars 178 forks source link

Calling api using this library in any controller #53

Closed mrgodhani closed 10 years ago

mrgodhani commented 11 years ago

Hi

How would I call api using this library in any controller. For example if I want to call get_user_info($token) function from Facebook.php provider using different controller and display it on view. Same with the linkedin I want to show user's connection after they login using OAuth.

Any help would be appreciated

Thanks.