Description Usage Arguments Value Valid sources Author(s) See Also Examples
View source: R/facebook.image.formats.R
facebook.image.formats
pulls information about the formats of a set of photos
in a link{FacebookPhotosCollection-class}
and push into a named list.
1 2 3 | facebook.image.formats(id, token = NULL, parameters = list(),
fields = c("source", "height", "width"),
.progress = create_progress_bar())
|
id |
An existing |
token |
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with |
parameters |
A list of parameters to be added to the Facebook Graph API query. For more information on the accepted parameters, see: https://developers.facebook.com/docs/graph-api/using-graph-api. |
fields |
A character vector with the fields to get for each |
.progress |
progress_bar object as defined in the plyr package.
By default the |
A named list with all the formats of the given photos. The name of is set to the id
of the photo.
FacebookPhotosCollection-class
will build a collection with
the formats available for the photos in the source collection.
Gabriele Baldassarre https://gabrielebaldassarre.com
FacebookAlbumsCollection
, FacebookPhotosCollection
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
## See examples for fbOAuth to know how token was created.
load("fb_oauth")
## Getting information about two example Facebook Pages
fb.pages <- FacebookPagesCollection(id = c("9thcirclegames",
"NathanNeverSergioBonelliEditore"),
token = fb_oauth)
## Pull at most 10 albums from each page
fb.albums <- FacebookAlbumscollection(id = fb.pages, token = fb_oauth, n = 10)
## Pull all the available photos from each album
fb.photos.inf <- FacebookPhotoscollection(id = fb.albums, n = Inf)
## Pull all the available formats for those photos
fb.images.inf <- FacebookImagescollection(id = fb.photos.inf, n = Inf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.