Social GK5 Facebook's problem (bug)

Free Joomla social activities module which can display data from Twitter, Facebook and Google+ in various layouts.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Dec 28, 2012 1:14 pm
Hi,

Some of the ones using Firebug may have noticed an error message in the console when using a Social GK5 module as in the Facebook Likebox module.

The error message is:

not found tourisme.nadorpresse.com:489
FB.init has already been called - this could indicate a problem connect.facebook.net/fr_FR/all.js:49


Well, thing is, it tries to locate 'fb-root', does not find it, returns the error.

The Social GK5 script does not generate an 'fb-root' entry, it does generate a variable of it named 'gkfb-root', see /templates/gk_publisher/layouts/blocks/social.php, lines 13 and 80:

Line 13:
Code: Select all
<div id="gkfb-root"></div>

Line 80:
Code: Select all
document.getElementById('gkfb-root').appendChild(root);


Modifying both of gkfb-root to fb-root fixes it.

Now I'm wondering what do we need a variable named gkfb-root for?

Regards.
User avatar
Senior Boarder

GK User
Fri Dec 28, 2012 3:49 pm
The gkfb-root was used to avoid this problem with duplicate fb script so in proper way the gkfbroot should be use in template and fb-root in social module.
User avatar
Platinum Boarder

GK User
Fri Dec 28, 2012 5:06 pm
bkrztuk wrote:The gkfb-root was used to avoid this problem with duplicate fb script so in proper way the gkfbroot should be use in template and fb-root in social module.


Any idea why is it confusing the facebook script now? When you set that to fb-root instead of gkfb-root the error is no longer showing..
User avatar
Senior Boarder

GK User
Sun Dec 30, 2012 9:49 pm
It is hard to help you without checking site. Facebook scripts messages are usually notice not error messages which tells - everything is working but you may have conflict. In fact this situations are impossible to avoid if you use several extensions which use facebook api features.
User avatar
Platinum Boarder

GK User
Mon Jan 14, 2013 4:17 pm
Good day,

I have a similar problem under the publisher (template). When I select to show the Social Sharing it does not show the facebook icon like the g+ or twitter

So I have made sure that under category (k2) all three are available (Twitter, Faceboo, Google) and under the K2 Item I made sure they inherit from catagory (even tried show) and the icons show only for twitter and google+.

Any idea? I did the suggestion of removing the gk from gkfb and did not solve my problem here is the link.

http://goo.gl/g73Ak

Thanks a million
BoB
User avatar
Fresh Boarder

GK User
Mon Jan 14, 2013 4:28 pm
bmotamed wrote:Good day,

I have a similar problem under the publisher (template). When I select to show the Social Sharing it does not show the facebook icon like the g+ or twitter

So I have made sure that under category (k2) all three are available (Twitter, Faceboo, Google) and under the K2 Item I made sure they inherit from catagory (even tried show) and the icons show only for twitter and google+.

Any idea? I did the suggestion of removing the gk from gkfb and did not solve my problem here is the link.

http://goo.gl/g73Ak

Thanks a million
BoB


Hi,

Use Firebug it makes things easier to locate.

Referring to Firebug's error console, there seem to be a problem related with your FB's application :

https://www.facebook.com/dialog/oauth?c ... t&sdk=joey

Error message says: <div><span>Erreur d’application: Un problème est survenu lors de la récupération des données pour l’application que vous avez demandée. Cette application n’est peut-être pas valide ou une défaillance temporaire a eu lieu. Veuillez réessayer ultérieurement.</span><script>if (typeof console !=="undefined" && console.log) console.log("Erreur d\u2019application: Un probl\u00e8me est survenu lors de la r\u00e9cup\u00e9ration des donn\u00e9es pour l\u2019application que vous avez demand\u00e9e. Cette application n\u2019est peut-\u00eatre pas valide ou une d\u00e9faillance temporaire a eu lieu. Veuillez r\u00e9essayer ult\u00e9rieurement.");</script></div>

Meaning in short, application does not seem to be valid or a temp problem, try later.

I would check the application setting if I were you..

Regards.
User avatar
Senior Boarder

GK User
Mon Jan 14, 2013 4:34 pm
Good day and thanks for your quick response. How do I check the application. I have not made any change to it? Why would it work out of the box :-(?

Thanking you in advance for your attention to this matter.
BoB

leonabil wrote:
bmotamed wrote:Good day,

I have a similar problem under the publisher (template). When I select to show the Social Sharing it does not show the facebook icon like the g+ or twitter

So I have made sure that under category (k2) all three are available (Twitter, Faceboo, Google) and under the K2 Item I made sure they inherit from catagory (even tried show) and the icons show only for twitter and google+.

Any idea? I did the suggestion of removing the gk from gkfb and did not solve my problem here is the link.

http://goo.gl/g73Ak

Thanks a million
BoB


Hi,

Use Firebug it makes things easier to locate.

Referring to Firebug's error console, there seem to be a problem related with your FB's application :

https://www.facebook.com/dialog/oauth?c ... t&sdk=joey

Error message says: <div><span>Erreur d’application: Un problème est survenu lors de la récupération des données pour l’application que vous avez demandée. Cette application n’est peut-être pas valide ou une défaillance temporaire a eu lieu. Veuillez réessayer ultérieurement.</span><script>if (typeof console !=="undefined" && console.log) console.log("Erreur d\u2019application: Un probl\u00e8me est survenu lors de la r\u00e9cup\u00e9ration des donn\u00e9es pour l\u2019application que vous avez demand\u00e9e. Cette application n\u2019est peut-\u00eatre pas valide ou une d\u00e9faillance temporaire a eu lieu. Veuillez r\u00e9essayer ult\u00e9rieurement.");</script></div>

Meaning in short, application does not seem to be valid or a temp problem, try later.

I would check the application setting if I were you..

Regards.
User avatar
Fresh Boarder

GK User
Mon Jan 14, 2013 5:05 pm
From admin panel go to Extensions > Template Manager > gk_publisher in social tab make sure you've put the right application id, seems you've used your page id instead..

I assume you've already created an application here: https://developers.facebook.com/apps
User avatar
Senior Boarder

GK User
Mon Jan 14, 2013 5:29 pm
Thx Leoabil,

It is fixed now, to be honest I had no idea I had to create a facebook app id. As soon as I did It worked fine thanks for your prompt response and direction. You guys are the best.

BoB

leonabil wrote:From admin panel go to Extensions > Template Manager > gk_publisher in social tab make sure you've put the right application id, seems you've used your page id instead..

I assume you've already created an application here: https://developers.facebook.com/apps
User avatar
Fresh Boarder

GK User
Mon Jan 14, 2013 5:30 pm
I'm not part of the gavick official team, but u're welcome :)
User avatar
Senior Boarder

GK User
Tue Jan 15, 2013 8:20 pm
How to create facebook APP ID you can find in this article - https://www.gavick.com/documentation/joomla-templates/templates-for-joomla-1-6/how-to-implement-the-login-with-facebook-feature/ this is about configuring Login with facebook feature but process is similar.
User avatar
Platinum Boarder


cron