How to troubleshoot#
This guide is organized by symptom. Find the one you see, and follow its checks in order.
Several checks read the settings a page inherits. Ask the backend for them directly, replacing the path with the page's.
GET /Plone/news?expand=inherit&expand.inherit.behaviors=plonegovbr.socialmedia.settings HTTP/1.1
Accept: application/json
Endpoints and expansions describes the response.
The Profiles field is not a table#
The frontend add-on is not loaded.
Check that @plonegovbr/volto-social-media is in the addons key of your add-on's package.json, install again, and restart the frontend.
See How to install the frontend.
A page shows no icons#
Does the page inherit links? Request the settings for the page. If the response has no
plonegovbr.socialmedia.settingskey, no object above the page provides the settings behavior: install the backend profile, as How to install the backend shows.Do they come from the object you expect? Read
fromin the response. If it names a section rather than the site, that section provides the behavior, and its ownsocial_linkswin, even when empty. See How to give a section its own links.Does each link have a target? A link without a target is not rendered.
One link has no icon#
The link's network has no socialNetwork utility in the frontend.
Its anchor is rendered, empty.
Read the link's id in the response, and register a utility with that name, as How to add or change a network shows.
The icons have no styles#
The add-on's styles reach the page through the theme, which must import addonsThemeCustomizationsMain.
Volto Light Theme imports it; if your theme does not, the styles are never loaded.
See Styles.
The Follow Us block offers no network to pick#
The block's sidebar offers the networks of the links the page inherits. Add links to the site first, as How to set the site's links shows.
A network disappeared from a Follow Us block#
The site no longer links to that network. A block shows only networks the site links to, and keeps the rest of its list. Add the link to the site again, and the block shows it again.
The twitter:site or og:article:publisher tag is missing#
Is sharing on?
share_social_datamust betrue.Is there a username? Read
x_usernameorfacebook_usernamein the response. An empty value means the site has no link to that network, or that the link's target is not a plain profile address. A trailing slash is enough to lose it: Computed usernames lists the accepted addresses.
The fb:app_id tag is missing#
share_social_data must be true, and facebook_app_id must be set on the object the page inherits from.