| sm_add_instance | R Documentation |
Adds a domain to the instances a federated social media family collects from. Each instance is collected as a network of its own, named <family>.<instance>, with its own plan file, its own search process and its own access token.
sm_add_instance(family, instance)
family |
char, the federated social media family e.g. "mastodon" |
instance |
char, the domain of the instance to collect from e.g. "mstdn.party" |
The network identifier built from family and instance is a persistent key: it names
the plan file, the secrets and the network column of every post stored for it. Removing an
instance and adding it back resumes on its former history, but renaming it orphans that
history.
The credentials still have to be provided with sm_api_set_auth, and the
configuration is not written to disk, call save_config afterwards. The social
media menu of setup does all of it at once.
char, the identifier of the network collecting from this instance
sm_remove_instance
## Not run:
library(episomer)
setup_config(file.choose())
network <- sm_add_instance("mastodon", "mstdn.party")
sm_api_set_auth(network)
save_config()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.