library(fb2ga)
#get fb data
fb_ads <- fbads_builder(ad_account_id,fb_token,start_date,end_date)
#format for upload
fb_ads2 <- fb_ads_ga_format(fb_ads,medium,source)
#upload
fb_ads_ga_upload(fb_ads2,property_id,datasetid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.