Skip to content

Commit

Permalink
Version 1.1.1
Browse files Browse the repository at this point in the history
- Updated version number
- Updated README + details
- Rebuilt CSS
  • Loading branch information
AmauryCarrade committed Apr 21, 2019
1 parent a75c707 commit 25dd280
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ Themes can be `light` or `dark` as for now and for the built-in CSS. If you want

To use Twitter embeds, you'll need to register an application. This is done in a few simple steps.

1. Go to [the Twitter Apps page](https://apps.twitter.com/app/new) to create an application. You don't need to provide a callback URL (we never use that).
1. Go to [the Twitter Apps page](https://developer.twitter.com/en/apps) to create an application. You don't need to provide a callback URL (we never use that).
2. Then, click the **Keys and access tokens** tab and at the bottom of the page, click **Create my Access Token**.
3. Finally, copy the credentials in the configuration file (or in the admin).

If not configured, you'll see an error if you try to embed a tweet, but other embeds will work fine.

If you don't have a developer account, you'll have to [apply for one](https://developer.twitter.com/en/apply). Twitter will ask you how you plan to use the API.
For reference, this plugin uses it read-only and complies with Twitter's Guidelines regarding tweets integration.

### Customization

If you want to customize the embeds' HTML code, you can override the `partials/static-social-embeds` templates. The template name is the same as the shortcode name (see below), e.g. `toot.html.twig` for Mastodon embeds template. Templates context vary for different social networks; checkout built-in templates or shortcode classes to know which variables you can use.
Expand Down
Loading

0 comments on commit 25dd280

Please sign in to comment.