12
votes

I maintain a couple of Facebook Marketing API PHP integrations. They pull data from ad campaigns into a dashboard. Since these are for specific clients to access their own data, I keep them in Dev mode as I don't want them publicly visible. At 10 AM this morning, the API suddenly started refusing connections to both apps. The error I get is:

"error_user_title": "Specific asset cannot be accessed in dev mode app",

"error_user_msg": "Your query touched some business assets which cannot be viewed in dev mode app. Please make sure all business assets the dev mode app is accessing are either with in the same business as the app, or under the caller if app doesn't have a business. Dev mode app and accessing asset are not owned by same business",

I went through the app settings and the relevant business is still associated with the app. I verified all the credentials and it all appears good. This happened simultaneously across two similarly-configured apps.

Nothing changed about my code, and as this happened two two different apps and two different accounts simultaneously, I assume Facebook just changed something.

Anyone know how to fix this?

6
Same, at same time as you. Maybe something going on with Facebook? I started experiencing this error around 10am PST and have been continually experiencing it since then.Josh
Just a note, go into facebook admin, go into settings for the app where you handle the api key and all that, associate your app with your business id, or let me know if you had already done that. i had not done that, i just did that now, and maybe that was it.Josh
I'd already associated the app with the business id back when I set up the app, and I checked that it was still associated when the errors started. Wasn't the issue for me.James
I had the same issues begin at 10 AM PST today.Kavi Sek
Looks like it's resolved itself for me, as other commenters have posted. It's working again on both my apps.James

6 Answers

8
votes

I was experiencing the same thing. As Pieter suggested, it look like it was a bug and has now been resolved. My app is working fine now.

3
votes

Seems to be an issue with Facebook as I'm currently experiencing the same thing. I'm not using PHP though, using Node on this side.

3
votes

I just had the same issue. I was able to resolve it by changing the status of the app from 'Off - In Development' to 'On - Live'. After going live I was not able to find my app by searching for it. If that changes because of some delay on Facebook's end I'll update this.

Off - In Development

On - Live

Update: According to https://developers.facebook.com/docs/apps/managing-development-cycle/ it doesn't look like your app can be found unless you submit it to the App Center.

2
votes

I hope this works for some of you.

1) I was able to resolve the problem navigating to the following domain containing the app settings.

https://developers.facebook.com

2) Under "My Apps", select your app (mine was in dev mode).

Developer Home Page

3) Then select the "advanced" settings in the left-hand margin. See image below.

Advanced Settings

4) On the next page, I scrolled down to the Business Manager subsection and selecting my company. Saved the changes on the page. At the time my Facebook Account was an Admin for this business.

[Business Manager Example[2]

Then ran my Python Script. Everything worked afterwards.

My app was in dev mode the entire time as we only use it internally.

1
votes

Ok, here is my current understanding of the problem. You have a facebook business id for which you can create multiple apps. When creating an app it defaults to a generic developer app that is not associated with your facebook business id.

You are running queries (e.g. graph rest api requests) that were accessing data objects associated with your business id from your app that is not associated with your business id.

This basically means you need to get your dev app associated with your business id in order to do those graph calls.

You can do this from the facebook marketing api admin area. Once you associate then you need to do all the request like setup a privacy policy, get it approved, setup proper permissions, etc. Then you should be able to continue as before.

So my best guess is fb decided to just suddenly lock down generic app requests against data that belongs to a particular business id.

1
votes