Comments (18)
I had some issues on the live server (Mainly memory issues), so I downloaded a copy of the version I'm using from the Mautic repository and extracted it to a folder locally.
Then I ran composer locally, zipped up the vendor folder and used it to replace the one on the live site.
I then cleared Mautic cache and everything was working as normal.
Running composer seemed to update some existing packages but everything seems fine.
It might be easier to actually move the dependencies into the plugin folder though as this could all break the next time Mautic updates the vendor folder.
from mauticfbadscustomaudiencesbundle.
I think I'm actually getting an error before I get to where you are as I don't have any permissions to access the ad account from my app. It's just that the error message isn't clear.
My local install is 2.10.0 on php 5.6 and the live one is 2.10.1 on 5.6 but I don't think that has anything to do with the errors.
I'll be back when the ad account owner has been added to the app.
from mauticfbadscustomaudiencesbundle.
@vexersa Did you resolve your issue?
from mauticfbadscustomaudiencesbundle.
@robwent Did you get plugin MauticFBAdsCustomAudiencesBundle to publish and work as expected? If yes, what version of Mautic and PHP are you using? I am unable to publish the plugin and get the following error (code: 100) in Mautic log:
[2017-11-28 14:47:38] mautic.CRITICAL: Uncaught PHP Exception FacebookAds\Http\Exception\AuthorizationException: "Invalid parameter" at /opt/mautic-2.11.0/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php line 144 {"exception":"[object] (FacebookAds\Http\Exception\AuthorizationException(code: 100): Invalid parameter at /opt/mautic-2.11.0/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php:144)"} []
from mauticfbadscustomaudiencesbundle.
Just working on it now.
I got a 500 error when I tried to publish and the error lofg says that the sdk is out of date and you should use 2.11.* so I'm just updating to that now to see if that fixes the problem.
[2017-12-01 15:39:10] 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: v2.11."
from mauticfbadscustomaudiencesbundle.
I got the same error initially. FB API is now on v 2.11. I ran the following command to get past that error (not sure if it broke something else).
composer require facebook/php-ads-sdk:2.11.*
from mauticfbadscustomaudiencesbundle.
after update I'm just getting the too many requests error noted in the readme. I'm not able to delete segments so not sure how I can get past this one. Will take a look at the plugin and see if I can limit it to the first x number.
[2017-12-01 16:06:20] mautic.CRITICAL: Uncaught PHP Exception FacebookAds\Http\Exception\AuthorizationException: "(#17) User request limit reached" at /path/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php line 144 {"exception":"[object] (FacebookAds\\Http\\Exception\\AuthorizationException(code: 17): (#17) User request limit reached at /path/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php:144)"} []
from mauticfbadscustomaudiencesbundle.
@robwent Where you able to get the plugin to publish? If yes, what version of Mautic and PHP are you using?
from mauticfbadscustomaudiencesbundle.
When you try and save the plugin settings it tries to sync your segments regardless of whether it's published or not.
I can't publish it as I run into an error reaching the api limit.
At the moment I'm trying to limit the lists that get synced here: https://github.com/rmuilwijk/MauticFBAdsCustomAudiencesBundle/blob/master/EventListener/PluginSubscriber.php#L55
Unfortunately, I can't even do it with one, I just get the same error.
I'm going to leave it for a while and then try again.
Testing on an empty local install it publishes without any errors.
from mauticfbadscustomaudiencesbundle.
I had a look at the facebook app review and this is my problem:
By default, your app may only access ad accounts that are owned by admins of the app. If you want the ability to access additional ad accounts, you must submit this feature for review.
I'm not the owner of the ad account.
from mauticfbadscustomaudiencesbundle.
@robwent I am the owner for my App and Ad Account. When I try to publish the plugin I get the same error 100.
[2017-12-01 12:06:24] mautic.CRITICAL: Uncaught PHP Exception FacebookAds\Http\Exception\AuthorizationException: "(#100) Data is missing or does not match schema" at /opt/mautic-2.11.0/vendor/facebook/php-ds-sdk/src/FacebookAds/Http/Exception/RequestException.php line 144 {"exception":"[object] (FacebookAds\Http\Exception\AuthorizationException(code: 100): (#100) Data is missing or does not match schema t /opt/mautic-2.11.0/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php:144)"} []
Seems like your plugin might be functional but is running into the issue with api limit. I'm trying to understand what version is your Mautic and PHP version.
from mauticfbadscustomaudiencesbundle.
Wow lots of activity here today. Any progress? If not I can look into this next week.
from mauticfbadscustomaudiencesbundle.
Hi @rmuilwijk , what is the recommended OS + version, PHP version, and Mautic version to get the plugin to work? Please advise. Thank you.
from mauticfbadscustomaudiencesbundle.
FYI the owner of the ad account is now an owner of my app as well and I have successfully connected a local install to FB.
To get around the initial rate limiting, I'm currently copying segments from the live Mautic install to my local install and then slowly importing contacts.
Once the limits are removed I'll try enabling it on the live site again.
from mauticfbadscustomaudiencesbundle.
I'm not a developer but trying to get this to work. Step 1 says to Require the FB ads library in the Mautic root directory: composer require facebook/php-ads-sdk:2.9.*
Do I SSH to my Linux install and run that as a command or do I add that statement to .htaccess?
Thank you!
from mauticfbadscustomaudiencesbundle.
@robwent I am the owner for my App and Ad Account. When I try to publish the plugin I get the same error 100.
[2017-12-01 12:06:24] mautic.CRITICAL: Uncaught PHP Exception FacebookAds\Http\Exception\AuthorizationException: "(#100) Data is missing or does not match schema" at /opt/mautic-2.11.0/vendor/facebook/php-ds-sdk/src/FacebookAds/Http/Exception/RequestException.php line 144 {"exception":"[object] (FacebookAds\Http\Exception\AuthorizationException(code: 100): (#100) Data is missing or does not match schema t /opt/mautic-2.11.0/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/Exception/RequestException.php:144)"} []
Seems like your plugin might be functional but is running into the issue with api limit. I'm trying to understand what version is your Mautic and PHP version.
Hello,
Did you solve this issue?
from mauticfbadscustomaudiencesbundle.
Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Http\Exception\RequestException.php:174 Stack trace: #0 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Http\Client.php(215): FacebookAds\Http\Exception\RequestException::create(Object(FacebookAds\Http\Response)) #1 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Http\Request.php(286): FacebookAds\Http\Client->sendRequest(Object(FacebookAds\Http\Request)) #2 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Api.php(165): FacebookAds\Http\Request->execute() #3 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Api.php(214): FacebookAds\Api->executeRequest(Object(FacebookAds\Http\Request)) #4 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\ApiRequest.php(187): FacebookAds\Api->call('/act_3883916088...', 'POST', Array, Array) #5 C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk in C:\xampp\htdocs\create\vendor\facebook\php-ads-sdk\src\FacebookAds\Http\Exception\RequestException.php on line 174
from mauticfbadscustomaudiencesbundle.
PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in C:\xampp8.0\htdocs\facebook-php-business-sdk\src\FacebookAds\Http\Exception\RequestException.php:174
Stack trace:
targeting fields
from mauticfbadscustomaudiencesbundle.
Related Issues (4)
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 mauticfbadscustomaudiencesbundle.