Message Boards

no visible content in facebook-integration-portlets!

Daniel Niklas, modified 11 Years ago.

no visible content in facebook-integration-portlets!

Junior Member Posts: 46 Join Date: 11/8/10 Recent Posts
Hi,

i tried to use fb-integration-portlet-6.1.0.1.2.war with liferay-portal-6.1.1-ce-ga2, but i cannot see any content from facebook (exept for pile _without_ using facebook sdk).
I cannot see error messages in the log file. Firebug console says "The "fb-root" div has not been created, auto-creating".

Any ideas whats going wrong here? Any hints how to figure out the errors?

Best regards
Daniel
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

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

I just verified this myself today. It looks very weird to me since it seems to be working fine in this page I created using liferay EE , but there shouldn't be any difference regarding a simple iframe between both versions.

Some people have mentioned it may be related to http vs https, or maybe it does not work in a local environment without a virtual host....

not sure yet, I am researching it, hopefully I can find the issue soon.... any help is very appreciated!
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

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

it seems facebook changed their API and I hadn't realized. I just updated the plugins and everything seems to work fine again. The plugin will be available soon in the marketplace, but until that happens, I am posting here a link to the war file from github.

Let me know if you have any issue with this new version.

cheers!
Daniel Niklas, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

Junior Member Posts: 46 Join Date: 11/8/10 Recent Posts
Hi Julio,

thanks a lot - the new version is working fine!
There seems to be one exception: the "Link Button" does not show content without enabled "use facebook sdk".

Btw: Im not aware of the facebook APIs... Can i eliminate iframes when using "facebook sdk"?!

Daniel
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

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

I just fixed the error in the Like Button, thanks a lot for finding that one! emoticon

It's already in github.

Regarding the facebook API, when you use the "facebook SDK", you are using HTML initially, but then facebook uses js to generate the visual component and they are using iframes for that. I don't think you can do anything about it right now. See this page for more details: https://developers.facebook.com/docs/plugins/
Nik Art, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

New Member Posts: 6 Join Date: 3/20/13 Recent Posts
Hi Julio,
I've downloaded latest war file from https://github.com/juliocamarero/facebook-liferay-integration/downloads
I've tried to use comments and like button portlets from fb-integration-portlet-6.1.0.1.2.war with liferay-portal-6.1.1-ce-ga2, but i cannot see any content from facebook.
Version from marketplace works fine.
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

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

github has deprecated the downloads page and it doesn't allow me to upload the new version. The latest one used to work until facebook changed their API.

You should use the one from the marketplace or the one inside the project code in the dist folder.

cheers!
Nik Art, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

New Member Posts: 6 Join Date: 3/20/13 Recent Posts
War file from dist folder fb-integration-portlet-6.1.0.1.war doesn't work with liferay-portal-6.1.1-ce-ga2.
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

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

the file should be the same as in the marketplace except for the PACL policy (which is not included in the one in the dist folder).

I just tested in a clean 6.1.1-ce-ga2 with the war from the dist folder and it works fine for me. How are you configuring your portlets? can you paste a screenshot of the configuration you have for the "Like Box" portlet?

Thanks
Nik Art, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

New Member Posts: 6 Join Date: 3/20/13 Recent Posts
Hi Julio,

I undeployed previously installed Facebook app, deployed war file from dist and everything worked. Thanks
thumbnail
Julio Camarero, modified 11 Years ago.

RE: no visible content in facebook-integration-portlets!

Liferay Legend Posts: 1668 Join Date: 7/15/08 Recent Posts
Great! emoticon
Test Test, modified 10 Years ago.

RE: no visible content in facebook-integration-portlets!

New Member Posts: 2 Join Date: 7/30/13 Recent Posts
pleaz someone,
my like button does not appear
im using 6.1.1 ce ga
thumbnail
Julio Camarero, modified 10 Years ago.

RE: no visible content in facebook-integration-portlets!

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

do you get any error in the javascript console? or in the server console?

can you provide a screenshot of the configuration of your portlet?

cheers!
Martin Cal, modified 10 Years ago.

RE: no visible content in facebook-integration-portlets!

New Member Post: 1 Join Date: 12/12/13 Recent Posts
I am having the same problem, i dont know how to configure the facebooks portlets. How can i set up de activi protlet? What i need to put into "site" field?
thumbnail
Julio Camarero, modified 10 Years ago.

RE: no visible content in facebook-integration-portlets!

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

the "site" field can by any website, for example: www.yourwebsite.com

In the facebook website, now they call it "domain": https://developers.facebook.com/docs/plugins/activity/

cheers!