-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_facebook_credentials.Rmd
53 lines (40 loc) · 2.01 KB
/
create_facebook_credentials.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "Create Facebook Credentials: Token, Version, & Creation Act"
#author: "Robert Marty"
#date: "`r Sys.Date()`"
#output: rmarkdown::html_vignette
output:
html_document:
toc: true
toc_depth: 5
toc_float: true
vignette: >
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{rSocialWatcher}
%\VignetteEncoding{UTF-8}
---
This page includes instructions to create credentials for using the Facebook Marketing API. To use the API, three things are needed:
1. Token
2. Version
3. Creation Act
### Set up app
1. [Register as Meta Developer](https://developers.facebook.com/docs/development/register/)
2. Go to [https://developers.facebook.com/](https://developers.facebook.com/) and click [My Apps](https://developers.facebook.com/apps/?show_reminder=true)
3. Click [Create App](https://developers.facebook.com/apps/creation/) (green button)
4. Click [Other](https://developers.facebook.com/apps/create/?show_additional_prod_app_info=false&internal_test_app_surface_skipped=false)
5. Click __Business__, then __Next__
6. Create a name for the App, then click __Create App__
7. On the __Add products to your app__ page, click __Set Up__ for __Marketing API__
### Get token
1. Click __Tools__, which appears on the left hand side under __Marketing API__
2. Under __Select Token Permissions__, click the boxes next to __ads_management__ and __ads_read__
3. Click __Get Token__; the token will appear in gray, and be a long string starting with something like `EEAKW...`
![](../man/figures/cred_instructions_token.png)
### Get version
1. Under __App Settings__, click __Advanced__; the version will show on this page---for example, `"v18.0"`
![](../man/figures/cred_instructions_version.png)
### Get creation act
1. Go to [https://www.facebook.com/business/](https://www.facebook.com/business/)
2. Click __Create an ad__
3. The creation act will appear in the URL: __https://adsmanager.facebook.com/adsmanager/onboarding?act=[CREATION ACT NUMBER HERE]&breakdown_regrouping=1__
![](../man/figures/cred_instructions_cact.png)