Phoca Open Graph / J!3.2.1 bugs

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Phoca Open Graph / J!3.2.1 bugs

Post by sgofferj »

Hi,

I'm building a new site and installed the Phoca Opengraph plugin.

So far, i ran into the following issues:

Bug:
On the home page, which is a featured blog, og:title is not "Etusivu" (the menu item title) but it's the title of the first article in the blog. In all other content menu items, the og:title is correct.

Issue:
The plugin only generates og tags for content pages. That makes it barely useable. IMHO, it would be better to make it a system plugin rather than a content plugin and insert the og tags on every page. When it's from a component where the plugin doesn't know how to autogenerate the title and description fields, it can still fall back on the menu item title and description or then the global description, but at least, it would insert something.
Currently it's so that if a visitor would e.g. share the URL to the weblinks manually, there wouldn't be any og tags, hence the link on facebook would be very ugly and uncontrolled.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph / J!3.2.1 bugs

Post by Jan »

Hi, thank you very much for the info, I will take a look at it, the problem with system plugin is, you don't get the right information about the article like you get from content plugin :idea:

Jan
If you find Phoca extensions useful, please support the project
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Re: Phoca Open Graph / J!3.2.1 bugs

Post by sgofferj »

Actually, at least in J!2.5 it was possible. I haven't been hacking 3.x yet but I was messing with a facebook autopost plugin for 2.5 about 1,5 years ago which had a few bugs. Also, for 2.5 there is the HD-OG plugin which runs as system plugin. It just seems that it's not developed anymore :(.

If you are familiar with the differences between 2.5 and 3.x, the HD-OG plugin could probably give you a few valuable hints :).

Unfortunately, I'm swamped with projects at the moment, otherwise I would read the docs on the differences between 2.5 and 3.0 and try to help.
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Re: Phoca Open Graph / J!3.2.1 bugs

Post by sgofferj »

I noticed another one...

POG inserts META NAME tags but facebook seems to expect META PROPERTY tags. If you run a page with Phoca OG throught facebook's URL linter, it generates a bunch of warnings.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph / J!3.2.1 bugs

Post by Jan »

Hi, please let me know the warnings so I can take a look at it.

Thank you, Jan
If you find Phoca extensions useful, please support the project
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Re: Phoca Open Graph / J!3.2.1 bugs

Post by sgofferj »

The URL linter warns that the META tags are not there, because fb expects META PROPERTY tags but POG creates META NAME tags.

Just take any site you like which is running POG and run it throught the facebook URL linter at https://developers.facebook.com/tools/debug/

Edit:
See facebook documentation for correct tags: https://developers.facebook.com/docs/we ... ph-object/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph / J!3.2.1 bugs

Post by Jan »

Hi, thank you for the info, I will take a look at it.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply