Davis NikolaiMorozov https://github.com/flarum/core/blob/v0.1.0-beta.5/src/Http/Controller/AbstractClientController.php
NikolaiMorozov Davis yep, I'm using ConfigureClientView event to get ClientView and set default metatags. But how to access Discussion/User/... page data from it?
Davis 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.
NikolaiMorozov 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 ?
NikolaiMorozov Davis Thx, but allmost all the time it's ClientView, so can't use it. ChallaPradyumna Yep, but wich image should i use? Favicon? First image in discussion? For now socials allow you to chose image if they find any on page.
ChallaPradyumna NikolaiMorozov First image would be great because favicon will get repetitive. If it can pull images off imgur if there is a imgur link that would be extra awesome. Currently i am using imgur to post images since there is no official way to upload images to the forum and eventually when the feature comes i dont want to duplicate effort
NikolaiMorozov Davis I mean it's ClientController in $this->action allmost all the time - for example /u/user and /t/tag have ClientController in action on page open.
Davis NikolaiMorozov ugh... I think this might just have to be something I download to my development environment and play around with. Are there any other events you could listen for? Maybe try accessing the Request variable and taking the request URL from it?
NikolaiMorozov Davis I'm realy hope there are another way to access data except PrepareApiData event, because it's realy not the right way. But request usage is nice idea. ChallaPradyumna I think about extention that require this one and Flagrow image uploader mentiond by @Davis. It will fill og:image.
Davis ChallaPradyumna https://discuss.flarum.org/d/1836-flagrow-image-upload-image-uploader-for-flarum-forum-messages
ChallaPradyumna NikolaiMorozov Davis Finally wrote it myself. og:image works now. Submitted a pull request ?
cristic Do you think you can remove the markdown specific keywords (if I can name them like this) from the description? In my opinion is kind of ugly to have **some text** or ![some image](http://......) in a facebook description when sharing a link
deseven Doesn't work in beta 6 (settings aren't available in admin panel, no share button in discussions).
Exile deseven Doesn't work in beta 6 (settings aren't available in admin panel, no share button in discussions). All works perfect at discussions, but no settings in admin panel, yes.
deseven Exile i don't see share button in discussions, so it doesn't work for me at all. Clean beta 6 install.
cristic deseven do you use a cache plugin or CloudFlare ? if so clean your cache and reactivate the plugin @NikolaiMorozov any plans for adding a settings panel where we can choose an image that will be used when sharing the website? (the homepage, not a discussion). Thanks