Unable to create Facebook ad with facebook app in design mode

I am working on an FB application to create Facebook ads. I used to be able to debug the process of creating an entire FB ad in design mode, but suddenly I started getting this error so that I could not find the documentation.

Request:
https://graph.facebook.com/v2.2/act_foo/adcreatives?access_token=bar

Answer:
{"error":{"message":"Invalid parameter","type":"FacebookApiException","code":100,"error_subcode":1885183,"is_transient":false,"error_user_title":"Ads creative post was created by an app that is in development mode","error_user_msg":"Ads creative post was created by an app that is in development mode. It must be in public to create this ad."}}

I was looking for API API documentation but found nothing about this error_subcode: 1885183 . Does anyone have experience with this error or a hint how to deal with it?

EDIT FB reports error: https://developers.facebook.com/bugs/1605648466391176/

+8
facebook facebook-graph-api facebook-ads-api
source share
2 answers

To complete this question, the answer from the resolved error report is as follows:

Throughout our platform, including the marketing API, content created by applications is available only to users who can see the application

We had a bug that allowed us to create ads that advertised messages created by applications under development - such ads would not be visible to anyone except the Admins, Developers or Testers applications - this caused several problems in our ad delivery system, and now the correct one Validation is performed to prevent the creation of such ads.

If you want to create an advertisement from an application that is in development mode, it’s possible, but the message that you are going to advertise must be created by an application that is not in development mode, that is, if your application is in development mode, this is normal, if you advertise existing posts on the page from the endpoint of the / promotable _posts page, and the application that created these posts is not in development mode

If you do not use existing messages on the page and create them inline / implicitly as part of creating an ad, the application used to create the ad should be visible - you can change it for your application using the command "Do you want to make this application and all its live features available to the general public? " go to the "Status" and "Overview" tab of the application panel for the application

https://developers.facebook.com/bugs/1605648466391176/?comment_id=1039672816061177

+6
source share

We had the same problem and found a workaround that fixed it.

We created a new base application for facebook without additional permissions and immediately published it.

Then we added ourselves as admins and could again create promotional materials through the marketing api.

Hope this helps you

0
source share

All Articles