i want my mobile application (flutter) can create publicity campaigns and synchronize it with facebook Ads. i saw that it is the marketing API used for that but i don’t know if it is possible to consume the marketing API in my app.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
It is possible to consume it with a mobile app:
– Create a Facebook app and get an app ID. You use the ID to make API calls.
Use this docs to know how to do it.
You can use Graph API: The Graph API is the primary way to get data into and out of the Facebook platform. It’s an HTTP-based API that apps can use to programmatically query data, manage ads and perform a wide variety of other tasks. Learn more in Graph API Overview or start using in Using the Graph API.
Here is how to send requests to Marketing API.
As I can understand and quickly search on flutter packages page, I guess you can use facebook_audience_network package which is currently only available on Android devices.
As it is described in “Installing” section, you can use this package’s dependency and import in your dart class in which you want to use it.