Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)
« previous
next »
Print
Pages: [
1
]
Author
Topic: About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb) (Read 3543 times)
armpouniotis
Sr. Member
Posts: 377
About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)
«
on:
September 02, 2020, 12:23:25 »
Hi there !
if we want to share an article on facebook,
do we have to put inside our index.php these attributes
:
"og:url, og:type, og:title, og:image, og:description, fb:app_id"
facebook debuger says that: "Warnings That Should Be Fixed"
When I am trying to share an artile, I can see its title etc, but sometimes the image is from another article....
Any help ?
Thank you in advance
Christos Armpouniotis
Logged
Christos Armpouniotis
webgift
Elxis Team
Hero Member
Posts: 4193
Re: About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)
«
Reply #1 on:
September 03, 2020, 19:13:33 »
Hello,
the open graph (og) meta data must be added from com_content as we need
to fetch info from there like article's title, one image and a part of it's description.
og:url, og:type can be declared from template's index.php file as well as the
fb:appid.
The general syntax is:
<meta property=”og:type” content=”website” />
so you could use addCustom method in order to implement them like f.e:
eFactory
::
getDocument
()->
addCustom
(
'<meta property="og:type" content="website" />'
);
in any case com_content must be adjusted.
«
Last Edit: September 03, 2020, 19:15:45 by webgift
»
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
armpouniotis
Sr. Member
Posts: 377
Re: About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)
«
Reply #2 on:
September 03, 2020, 23:18:12 »
Hi there !
thank you for your help !
As you say, com_content file should be modified in order to implement og:title, og:image, og:description.
I see your point.....
Thank you anyway !
Christos
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10356
Re: About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)
«
Reply #3 on:
September 04, 2020, 19:20:14 »
FYI: The latest Elxis release (5.1 rev2352) supports execution of content plugins
without editor integration
. This means that
{blah}...{/blah}
in editor is not required. So, you can develop a plugin that will add the meta tags you want (they way webgift mention or else) without touching Elxis source code and without even having to edit the articles in order to add the plugin ;-) To use as sample: A plugin that has uses this new Elxis feature is the
Guests Comments
plugin
«
Last Edit: September 04, 2020, 19:22:45 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
About facebook sharing (og:url, og:type, og:title, og:image, og:description, fb)