Comments (13)
I'll try with
https://github.com/facebook/facebook-php-business-sdk
from mauticfbadsleadadsbundle.
In step 7 plugin requires "Your custom Facebook Verify token of the webhook" but I don't have it,
from mauticfbadsleadadsbundle.
I'm turning crazy trying to understand this:
"Require the FB ads library in the Mautic root directory composer require facebook/php-ads-sdk:2.9.*"
Where can I find Fb Ads Library. I have searched in google and github but I haven't found a confidence result.
Thanks!
Carlos, did you have any answer about your questions? I have the same doubts than you...
from mauticfbadsleadadsbundle.
I guess this sotware is not working with the new FB API
from mauticfbadsleadadsbundle.
Ok, thank you!
from mauticfbadsleadadsbundle.
Hello guys,
I'm trying to install it as well. These are the steps I followed for the installation
1 - ssh to machine
2 - since I downloaded the zip file from the website I didn't have the composer.json in my root folder
3 - downloaded the composer.json from master in github into mautic's root folder
4 - installed composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; php -r "if (hash_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"; php composer-setup.php; php -r "unlink('composer-setup.php');"; mv composer.phar /usr/local/bin/composer;
5 - downloaded all the libs and facebook ads sdk (you might have other dependencies here that you have to install, it depends on your server)
composer update; composer require facebook/php-ads-sdk:2.9.*;
6 - Downloaded Plugin
cd plugins; wget https://github.com/rmuilwijk/MauticFBAdsLeadAdsBundle/archive/master.zip; unzip master.zip; rm master.zip; mv MauticFBAdsLeadAdsBundle-master MauticFBAdsLeadAdsBundle;
7 - Ensure everything was accessible (might not be nedded)
chown www-data:www-data mautic_path -R;
8 - Clear cache
php app/console cache:clear --env=prod
The plugin is running, normally.
But after the facebook app configuration and connection step to authorize the app I get an error due to wrong version
mautic.CRITICAL: Uncaught PHP Exception FacebookAds\Http\Exception\AuthorizationException: "(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v3.1." at /var/www/mautic_mesterlab/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php line 140 {"exception":"[object] (FacebookAds\\Http\\Exception\\AuthorizationException(code: 2635): (#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v3.1. at /var/www/mautic_mesterlab/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php:140)"} []
will try to update and see if I get it working
from mauticfbadsleadadsbundle.
@fcandiani did you get it to work?
from mauticfbadsleadadsbundle.
@dsp76 Yes, I just had to change the composer dependency to 3.1.*;
composer require facebook/php-ads-sdk:3.1.*;
Also, I installed mautic using git instead the "ready package" (all composer deps installed) they provide.
from mauticfbadsleadadsbundle.
When I installed via composer, it broke my mautic installation.
from mauticfbadsleadadsbundle.
Can you provide more details?
I could help you
from mauticfbadsleadadsbundle.
@fcandiani tried to find you either in Mautic Slack (https://www.mautic.org/slack/) or in Skype to discuss it. Maybe we can switch there?
currently "composer require facebook/php-ads-sdk:3.1.*;" will delete all other vendor bundles from Mautic... if that was setup "traditionally" without composer.
Be careful, if you use composer in the case Mautic wasn't installed the same way before.
from mauticfbadsleadadsbundle.
As dsp76 mentioned, the first command command "composer require facebook ..." breaks the Mautic installation when the server is running the "production" version. Is there a way to bring it back to life after running this command? Unfortunately, I didn't see dsp's comment until after I had already tried. I'm now getting the "white screen of death" when I try to visit the url in browser. Also, when I try to run php app/console, there's a "Fatal Error" saying that the "Class App\MauticBundles\MauticApiBundle" cannot be found".. I'm assuming this is because composer is only looking in the root directory for Mautic's classes now, after running this command.
If no fix for this, shouldn't this be a big WARNING at the very top of this bundles' instructions??
from mauticfbadsleadadsbundle.
Here is how I made it to work :
INSTALL COMPOSER
curl -sS https://getcomposer.org/installer | /usr/bin/php7.1-cli
INSTALL Facebook Ads SDK
- Go to Mautic install directory
- rename the
./vendor/
directory tovendorBAK
- install the lib :
/usr/bin/php7.1-cli ~/composer/composer.phar require facebook/php-ads-sdk:2.9.*
This command ran into a "Fatal error: Out of memory" so I had to run it with the"--prefer-dist"
option - copy the
./vendor/facebook/
directory into the./vendorBAK/
- open the
./vendor/composer/installed.json
file, and get the code corresponding to the facebook library (between {} : DO NOT take the brackets) - copy these lines into the
./vendorBAK/composer/installed.json
file - rename
./vendor
to./vendorFB
, and./vendorBAK
to./vendor
INSTALL Mautic plugin
I followed @fcandiani method :
cd plugins; wget https://github.com/rmuilwijk/MauticFBAdsLeadAdsBundle/archive/master.zip; unzip master.zip; rm master.zip; mv MauticFBAdsLeadAdsBundle-master MauticFBAdsLeadAdsBundle;
- clear cache :
php app/console cache:clear --env=prod
- Go onto Mautic's Plugins page and click the "
Install/update plugins
" button ! - Plugin should appear next to Facebook plugin.
Configure Facebook
This is getting complicated as Facebook asks for many things to verify the app....
So I can't Authorize my app for now (app is being validated, but I can't provide them with all the requirements... Wait & see ! )
Hope that helps.
from mauticfbadsleadadsbundle.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mauticfbadsleadadsbundle.