Answer the question
In order to leave comments, you need to log in
How to install FacebookAds sdk on Composer?
The situation is this I am on a simple hosting, there is no way to install the conposer itself, I downloaded the vendor folder
downloaded from the git hub https://github.com/facebook/facebook-php-business-sdk , Facebook Ads, and uploaded it to the server folder in "src "
Google is doing fine. And here is Facebook.
require_once __DIR__ . '/api/vendor/autoload.php';
use FacebookAds\Object\AdAccount;
use FacebookAds\Object\AdsInsights;
use FacebookAds\Api;
use FacebookAds\Logger\CurlLogger;
$access_token = 'указан';
$ad_account_id = 'указан';
$app_secret = 'указан';
$app_id = 'указан';
$api = Api::init($app_id, $app_secret, $access_token);
$api->setLogger(new CurlLogger());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question