Gets a page access token that can be used to e.g. get insights for a page.
A page ID or page name.
the token (with scope 'manage_pages') of a user that has admin access to the page
the page access token string
1 2 3 4 5 6 7 8 9
## Not run: ## Get a normal access token with manage_pages scope token = fbOAuth(app_id, app_secret, scope="manage_pages") ## Get a page access token for a page page_token = getPageToken(page, token) ## Get page insights getInsights(page, token=page_token, metric = "page_impressions") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.