Have someone same issue? I can't reproduce it.
Avatar4eg/flarum-ext-share-social2
Avatar4eg Share Social
NikolaiMorozov Remove the .js files in your assets folder and then disabled and re-enable the extension.
- Edited
Consider creating a way for extension developers to add their own meta tags easily with use of this extension. Posibly turn this into a public function?
Also consider adding support for a user's page, tags page, and linking of a specific post. So if a user links post 15 it will supply the text for post 15.
Also, maybe these meta tags belong in core.
facebook and g+ does't work in my case
https://i.imgur.com/OWU7bG1.png
sizonov_stas
They cant access your localhost ?
- Edited
Help needed.
For now I use PrepareApiData event to access data to use in head metadata. But I cant use it for
Davis user's page
because ShowUserController used in many places and head metadata overwrites.
How I can access same data?
NikolaiMorozov Probably better to open a topic in the Dev tag to address this issue.
NikolaiMorozov You cannot change the page's headers through the API unless you modify the JS to do so. There's no point to though. Just have it set to set the headers on the initial page load.
Davis I'm not trying to change head metadata through the API - I'm accessing page data on PrepareApiData event (cant find another way) to set head metadata. I can't do it in JS because socials parse head metadata in nojs mode.
NikolaiMorozov access the variables available through the configurewebview event.
Davis maybe ConfigureClientView (no ConfigureWebView in my installation ?)? But how to access the variables in it?
Davis thanks, but it post beta5... so i cant use it
NikolaiMorozov oh sorry I forgot about that
Davis yep, I'm using ConfigureClientView event to get ClientView and set default metatags. But how to access Discussion/User/... page data from it?
- Edited
https://github.com/flarum/core/blob/v0.1.0-beta.5/src/Http/Controller/ClientView.php Try using request? Sorry don't have much time to do this I'm not at my computer either. You should just dig through the source code and figure it out that way.
Davis You should just dig through the source code and figure it out that way.
Thats what I tried. And couldn't find solution so i came here ?
- Edited
NikolaiMorozov Use this to check the action of the user.
Does not implement og:image tag.