Closed ronakprogrammer closed 5 years ago
Same error here...
I changed the API init method to
Api::init(
config('dmg.facebook.app_id'),
config('dmg.facebook.app_secret'),
$accessToken)
->getHttpClient()
->setCaBundlePath(base_path('vendor/facebook/php-business-sdk/fb_ca_chain_bundle.crt'));
It worked for 2-3 days and now started to get errors again. 👎
More info about my error in #472
Since we want to handle bugs more efficiently, we've decided to close issue reporting in Github and move to our dedicated bug reporting channel. If you encounter a bug with Business SDK (PHP), please report the issue at our developer bug reporting channel.
Hello,
We are fetching the Ads Insights data using PHP Ads SDK https://github.com/facebook/facebook-php-business-sdk. We have a cron running in back ground every few mins and updating our database initially the API calls works fine for 1 or 2 hours but then suddenly Insights API call starts throwing Errors, like "error setting certificate verify locations: CAfile: /var/www/html/production/reporting/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/../../../fb_ca_chain_bundle.crt"
We also checked that the crt file "fb_ca_chain_bundle.crt" is present on the src folder and inspite of file being present on server the API calls gets failed.
Whats wrong with the SDK, also we have open file limit of 100000 on our server but still SDK fails to read?
Please check
Thanks, Ronak