Facebook access_token广告

时间:2017-08-28 12:14:58

标签: php facebook api facebook-php-sdk

我有广告系列,希望通过此Facebook tutorial接收统计信息。
但到处都看到access_token需要。而且我不明白我可以在哪里找到它作为广告的开发者。
我已将this用于用户访问令牌,我看到了app令牌和页面令牌。但没有广告访问令牌。
所以我的问题:
1.是否可以从广告活动中获取数据作为开发人员?
2.如何为广告开发人员生成access_token?

1 个答案:

答案 0 :(得分:3)

These are the steps you need to follow to get started:

  1. Visit https://developers.facebook.com and create your app if you haven't already
  2. Visit the Marketing API > Tools page (put your APP ID in): additive="sum"

  3. Create a sandbox ad account and generate a sandbox token to test with (see screenshot: http://imgur.com/a/MjXTL)

Once you're ready to go live you'll need to then:

  1. Visit the Marketing API > Settings page (put your APP ID in): tidyverse

  2. Link your ad account

  3. Go back to the Marketing API > Tools page and generate a real access token