Search code examples
facebookfacebook-marketing-apifacebook-test-users

testing facebook business account?


Currently I am in the development phase of a Facebook marketing API integrated app with which I want to access other business's account.

In this process, I first started with testing the application over my own business and everything is working fine however for the next bit I would like to simulate the access to another "dummy" business to make sure everything will work fine.

Knowing the above, I created a test user in the Facebook application and I was trying to create a dummy business with it however Facebook doesn't allow this since the testing user always belongs to my own business.

To cut it short, how may I create a mock or "dummy" business account which has a different business id than my own and contact the API through that?


Solution

  • You can do it by using a Sandbox account. It works almost exactally like a normal business account, but with no money spent, and it's only accesable throug API.

    You can enable the Sandbox account by folowing these steps:

    • Go to https://developers.facebook.com/
    • Click the My Apps dropdown
    • Choose an app that you have Administrator or Developer Access to
    • Select Marketing API. If you don't see this option, click + Add Product and add Marketing API
    • Select Tools under Marketing API
    • Sandbox Mode appears