I am creating a web application on Codeigniter 3.2 which works with the Facebook Graph API. In order to make GET & POST HTTP requests, I need a curl library for Codeigniter. I have found Guzzle but I Don’t know how to use Guzzle on Codeigniter.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
Check this link:
https://github.com/rohitbh09/codeigniter-guzzle
You can integrate Guzzle into Codeigniter 3.x by following the following steps:
NOTE: I was doing this on Windows, should work on other platforms too.
if you encounter the following error while executing the above command
follow the recommendation in the error message.
Open
composer.json
located in your App root folder i.e.C:wamp64wwwMyCodeigniterApp
then change
to
You can now re-run the command in step 4 to install Guzzle
config.php
file under theapplication/config
directorymake the following changes under
Composer auto-loading
section and let the configuration be:The integration is complete, now you can use Guzzle in your controllers or models as below or by following the guides from Guzzle documentation on https://docs.guzzlephp.org/en/stable/
DONE…….