Description Usage Arguments Value Examples
auth_fbInsights generates a token which is saved to tokens/fbInsights_token and used for accessing Facebook Insights
| 1 2 3 | auth_fbInsights(config_path = "config.json",
  token_path = "tokens/fbInsights_token", create_token = TRUE,
  extended_permissions = TRUE)
 | 
| config_path | path where the config.json file is located | 
| token_path | path to the token file | 
| create_token | whether a new token should be loadcreated (mandatory, if an existing token is not available in the dir tokens/) | 
| extended_permissons | If TRUE, the token will give access to some of the authenticated user’s private information (birthday, hometown, location, relationships) and that of his/her friends, and permissions to post status updates as well as to access checkins, likes, and the user’s newsfeed If FALSE, token will give access only to public information. | 
A google drive token in the (newly created?) tokens/fbInsights_token directory.
| 1 2 3 4 | ## Not run: 
auth_fbInsights("config.json", create_token=TRUE, extended_permissions = TRUE)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.