Page 1 of 1

Phoca Open Graph / J!3.2.1 bugs

Posted: 20 Jan 2014, 01:12
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.

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 20 Jan 2014, 23:37
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

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 21 Jan 2014, 01:02
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.

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 12 Feb 2014, 13:57
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.

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 15 Feb 2014, 19:09
by Jan
Hi, please let me know the warnings so I can take a look at it.

Thank you, Jan

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 16 Feb 2014, 02:44
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/

Re: Phoca Open Graph / J!3.2.1 bugs

Posted: 16 Feb 2014, 19:38
by Jan
Hi, thank you for the info, I will take a look at it.

Thank you, Jan