留言板

no visible content in facebook-integration-portlets!

Daniel Niklas,修改在11 年前。

no visible content in facebook-integration-portlets!

Junior Member 帖子: 46 加入日期: 10-11-8 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在11 年前。

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

Junior Member 帖子: 46 加入日期: 10-11-8 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 6 加入日期: 13-3-20 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 6 加入日期: 13-3-20 最近的帖子
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,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 6 加入日期: 13-3-20 最近的帖子
Hi Julio,

I undeployed previously installed Facebook app, deployed war file from dist and everything worked. Thanks
thumbnail
Julio Camarero,修改在11 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
Great! emoticon
Test Test,修改在10 年前。

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

New Member 帖子: 2 加入日期: 13-7-30 最近的帖子
pleaz someone,
my like button does not appear
im using 6.1.1 ce ga
thumbnail
Julio Camarero,修改在10 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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,修改在10 年前。

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

New Member 发布: 1 加入日期: 13-12-12 最近的帖子
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,修改在10 年前。

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

Liferay Legend 帖子: 1668 加入日期: 08-7-15 最近的帖子
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!