GithubHelp home page GithubHelp logo

rmuilwijk / mauticfbadscustomaudiencesbundle Goto Github PK

View Code? Open in Web Editor NEW
46.0 9.0 24.0 18 KB

Enables integration with Facebook Ads Custom Audiences Syncing your Mautic segments.

License: GNU General Public License v3.0

PHP 100.00%
mautic facebook-ads plugin marketing-automation

mauticfbadscustomaudiencesbundle's Introduction

MauticFBAdsCustomAudiencesBundle

Enables integration with Facebook Ads Custom Audiences Syncing your Mautic segments.

Development was sponsored by Trinoco for the Qeado project.

Installation

  1. Require the FB ads library in the Mautic root directory

composer require facebook/php-ads-sdk:2.9.*

The library has been tested on 5.6 to also work so if you get requirements errors try:

composer require --ignore-platform-reqs facebook/php-ads-sdk:2.9.*

  1. Create a new Facebook App: https://developers.facebook.com/apps/

  2. Add the Marketing API Product.

  3. Visit the Marketing API -> Tools page in your app and check the scopes and hit Get Token. Store this access_token for later use.

  4. Go into your Facebook Ads account management and get your ad account id.

  5. Visit the Marketing API -> Settings page in your app and add your ad account id.

  6. Visit the app Dashboard page and store the app_id and app_key for later use.

  7. Enable the plugin and enter your app_id, app_secret, access_token and ad accoun id. . If you have more then 10 segments you might get errors enabling the plugin on install. When your facebook App is in development mode the requrest rates are limited. remove some segments en readd them later.

  8. Visis your facebook ads audiences page and check whether your segments have been added.

  9. Have your application running for a while. After you have reached 1000 succesfull api calls to your facebook app you can submit it for review and have proper rate limiting.

mauticfbadscustomaudiencesbundle's People

Contributors

rmuilwijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mauticfbadscustomaudiencesbundle's Issues

Nothing Happens after Clicking "Save and Close"

I did the following:

  1. Created Facebook App as instructed
  2. Installed the plugin in Mautic Plugins Folder
  3. Entered the Facebook App details in Plugin and Clicked "Save and Close"

But after clicking on "Save and Close" it keeps loading and nothing happens. I check the log file and i got the below error.

mautic.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'FacebookAds\Api' not found - in file /home/ajaymul1/autorestore.ajaymulchandani.com/plugins/MauticFBAdsCustomAudiencesBundle/Helper/FbAdsApiHelper.php - at line 37 [] []

Please help me in solving this error

Error 500 after installing FB SDK

Hi there,
thanks for your work.

I have tried to install the plugin but I'm stuck at the fist step.
I have well installed the FB SDK but then, Mautic is not available.

Here is the error log:

[13-Jan-2020 15:19:01 UTC] PHP Fatal error:  Uncaught Error: Class 'Mautic\ApiBundle\MauticApiBundle' not found in /home/XXXXX/public_html/app/AppKernel.php:169
Stack trace:
#0 /home/XXXXX/public_html/vendor/symfony/http-kernel/Kernel.php(431): AppKernel->registerBundles()
#1 /home/XXXXX/public_html/app/AppKernel.php(273): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 /home/XXXXX/public_html/vendor/symfony/framework-bundle/Console/Application.php(62): AppKernel->boot()
#3 /home/XXXXX/public_html/vendor/symfony/console/Application.php(117): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/XXXXX/public_html/app/console(40): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 {main}
  thrown in /home/XXXXX/public_html/app/AppKernel.php on line 169

Have you ever faced that kind of issue?
I use the version 2.15.3 of Mautic.

Thanks

Error/Critical Issue

Hello,

First, thanks for developing this. I'm hoping to get it working for my Mautic powered businesses.

I am running into an issue when running the command:
composer require facebook/php-ads-sdk:2.9.*

/var/log/nginx/error.log presents:

2017/09/11 21:18:25 [error] 7203#7203: *156 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'Mautic\CoreBundle\ErrorHandler\ErrorHandler' not found in /var/www/mautic/index.php:29
Stack trace:
#0 {main}
thrown in /var/www/mautic/index.php on line 29" while reading response header from upstream, client: 169.0.174.211, server: mautic.domain.com, request: "GET /s/plugins HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "mautic.domain.com"

Please let me know how what information you need if this is a real issue.

I have tried this twice with the same result, with both proposed composer commands with the same result.

Thanks!

Rate limiting review permissions

Can you update the readme with the permissions you need to request to get proper rate limiting?

'business_management' looks like it can give access to ad accounts, but there is also 'Ads Management Basic Access'.

One seems to ask for a video of how people use the app and the other, steps for them to replicate how it is used. Neither really seem appropriate for just audience syncing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.