Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to request permission to post ads on a page as an app?

I'm working on a facebook app that posts newsfeed ads, and I have been banging my head against the wall for the last few days, the work flow should go like this:

  1. User provides his page id.
  2. The App requests authorization to post ads on the page. stuck here
  3. App verifies that the user authorized it.
  4. App creates adcreatives using the user's page_id in the object_story_spec call to /adcreative using the app's ad account.

I went through How to post to page as an app?'s docs, couldn't figure it out.

  • the app is written in Go, however if you can provide a code sample it doesn't matter what language you use, I just need the basic work flow.
like image 749
OneOfOne Avatar asked Nov 10 '22 06:11

OneOfOne


1 Answers

Not sure what you want to do exactly, but if you want to create ads (for am ad_account/user) via an app, you'll need the ads_management permission during Facebook Login.

How you manually create a login flow can be found in the docs as well.

See

  • https://developers.facebook.com/docs/facebook-login/permissions#reference-extended
  • https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow
like image 179
Tobi Avatar answered Nov 15 '22 05:11

Tobi