如何生成Facebook Marketing API访问令牌以在Windows应用程序中使用它 [英] How to generate Facebook Marketing API access token to use it in Windows application

本文介绍了如何生成Facebook Marketing API访问令牌以在Windows应用程序中使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook作为广告平台来推广我在苹果和Google商店的应用。我想制作Windows服务,它将下载关于我的营销活动的运行一个Facebook的广告状态的每日报告,优选使用60天令牌,或者一些永久性的解决方案,以便在需要时检索令牌。我认为我理解所有要做的事情,除了如何生成访问令牌以使用它与Facebook Graph API。我需要哪一个Facebook帐户,以及如何获取它?

I am using Facebook as advertising platform to promote my application on Apple and Google stores. I would like to make windows service which will download daily report(s) about advertising status of my marketing campaign running one Facebook, preferably using 60 day token, or some permanent solution so that token is retrieved when required. I think that i understand everything to do this except how to generate access token to use it with Facebook Graph API. Which token for which Facebook account do I need and how to obtain it?

推荐答案

您将需要一个Facebook应用程序并授予该应用是ads_read权限,以通过API检索有关您的广告投放的报告(来源)。

You'll need a Facebook app and to grant that app the ads_read permission in order to retrieve reports about your advertising efforts via the API (source).

您将需要一个长寿命的令牌,以便您不必经常重新验证。 访问令牌文档详细说明了交换短命的步骤

You'll want a long-lived token so that you don't have to re-authenticate very often. The access token documentation details the steps to exchange a short-lived token for a long-lived one.

您可能还需要考虑通过来管理应用程序,广告帐户和访问令牌(通过业务系统用户) href =https://developers.facebook.com/docs/marketing-api/overview#business-account =nofollow> FB Business Manager

You may also want to consider managing the app, ad account, and access tokens (via a business system user) with the FB Business Manager.

这篇关于如何生成Facebook Marketing API访问令牌以在Windows应用程序中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆