Message Boards

Open Graph

thumbnail
Julio Camarero, modified 12 Years ago.

Open Graph

Liferay Legend Posts: 1668 Join Date: 7/15/08 Recent Posts
Hi guys,

I plan to start working on the Open Graph integration.

Initially, what I had in mind is to add a new section called "Open Graph" to the Manage Pages sections which allows you to configure some headers of the open graph protocol (title, type, image, url, description, locale...) per page as documented here: Open Graph Protocol

What do you think?
Jordi Buendia, modified 12 Years ago.

RE: Open Graph

New Member Posts: 4 Join Date: 11/8/11 Recent Posts
Hi Julio,

In despite of my lack of experiencie in web developping, I give you my opinion, because I am trying too to carry out an integration with Open Graph metatags.

I tried to define custom fields storing in expando tables the "variable" part of the open graph metatags. The idea was to embed the variable part in the rest of the open graph metatag throug a hook, overwriting the top-meta-head.jsp archive (I don't remember just now the exact name of the archive but it was something similar). Then the user has to introduce in custom fields the variable part of the og metatags, avoyding the necessity of knowing the og syntax. The problem with this idea was facebook couldn't connect to the information stored in expando tables, which seem to be the only storage mode for custom field entities.

I think you are talking about something similar, but perhaps you have a solution for this problem.
thumbnail
Julio Camarero, modified 12 Years ago.

RE: Open Graph

Liferay Legend Posts: 1668 Join Date: 7/15/08 Recent Posts
Hi Jordi,

the problem you had was probably because you didn't set the permissions property for those custom fields.

I am using the same approach but using layout settingsProperties instead because it will have better performance.

Do you have any screenshot of your UI? How many open graph tags did you allow the user to change?

thanks a lot!
Karen Castillo Inoa, modified 10 Years ago.

RE: Open Graph

New Member Posts: 13 Join Date: 2/24/12 Recent Posts
Hola Julio,

I see you have an Open Graph Hook on the downloads page. How does this work?
thumbnail
Julio Camarero, modified 10 Years ago.

RE: Open Graph

Liferay Legend Posts: 1668 Join Date: 7/15/08 Recent Posts
Hi Karen,

it adds a new configuration screen for your pages that allows you to convert any page of your site into a "OpenGraph" node. You will see that screen under Control Panel --> Site Pages --> Open Graph

You can use this tool to verify the behavior: https://developers.facebook.com/tools/debug/

cheers!
Karen Castillo Inoa, modified 9 Years ago.

RE: Open Graph

New Member Posts: 13 Join Date: 2/24/12 Recent Posts
I missed that. This is awesome, thank you! I forked your project on GitHub.
thumbnail
Julio Camarero, modified 9 Years ago.

RE: Open Graph

Liferay Legend Posts: 1668 Join Date: 7/15/08 Recent Posts
Awesome Karen! emoticon

I would love to accept contributions in the project and collaborate with you! Feel free to make me pull requests emoticon
Karen Castillo Inoa, modified 9 Years ago.

RE: Open Graph

New Member Posts: 13 Join Date: 2/24/12 Recent Posts
That is good. We have deployed the Open Graph portlet. As soon as we start making use of it, there will probably be development requests!