× Joomla Facebook Connect support forum

Topic-icon JFBconnect, to mimic FB authorisation process in app.

Active Subscriptions:

None
I have been using JFBC on several sites and it has been fantastic!!!
Now Im a building a facebook app and I want to use JFBC to mimic the FB app auth process. How do I change the "Login with Facebook" button to just "Login" ? Facebook apps dont really have a logout button either, or it has been hidden?
Also when you set auto login recconect a messaage comes up telling user that recconnection is taking place, how do I remove this as it is breaking my template layout?
There is also major problem with other JFBCmodules not working as their are conflicting with the iframe auto resize code and xfbml parse function I have inserted into my template. Some modules dont show up etc..maybe functions are being duplicated?
     

(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);

}());



window.fbAsyncInit = function() {
FB.Canvas.setAutoResize();
}

Please can someone tell me how, I can insert this code so that JFBC doesnt conflict and so that FB iframe canvas resizes and and I can add other xfmbl code.

This will be a fantastic addition to JFBC which will easily allow component to be used to build FB apps.
Hope I havent asked to many questions.

Best regards.
The topic has been locked.
Support Specialist
15 years 3 months ago #7875 by alzander
Det,
Glad you're liking JFBConnect. We work hard on it, so it's always great to hear the feedback in addition to subscribing, which means a ton to us!

Login With Facebook This text can be changed in the language file, /languages/en-GB/en-gb.com_jfbconnect.ini. Look for LOGIN WITH FACEBOOK= and change the right hand side to "Login" and it should look how you want it.

Logout We don't have an easy way to hide the logout button when using the module. You can either modify the module's template, or you can try the { JFBCLogin} tag (no spaces). If you put that tag anywhere on your site (in a module, template, article, etc), it will be converted to the Login button automatically. Once a user is logged in, it will automatically hide itself (no logout button). This may give you additional flexibility should you want it.

Reconnection text I believe this is in the language file as well. Check for it similarly to above, and if it's there.. just make the right-hand side of the line blank. That should remove it from showing. If it's not there, let us know and I'll investigate further.

XFBML Hmmm. We may have to test a little more, but we also need a little more info about what you're doing. Are you creating a complete Canvas app, on Facebook.com, or is this a page hosted on your site? Is it possible to send us the URL for us to see what's happening? Regarding your code snippet, the top portion should not be required, as JFBConnect should insert something very similar which may cause a conflict. Try searching the HTML output for 'all.js', it should only be there once. More than that can be bad.

After you've resolved that, let us know if that helps the resize code. If not, we'll test more (your URL will really help us recreate what you're doing as well). Either way, we'll do what we can to get you going!

Thanks again,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Thanks for your reply will be testing your recommendations today.

I am building a complete facebook app, in canvas thru iframe, so app is hosted on my site. there will be no url for the public to go to, only access will be thru FB like a normal FB app.

I have sent the url for the joomla site in your PM.
The topic has been locked.
Support Specialist
15 years 3 months ago #7900 by alzander
Det,
I'll try to check it out a little later. If you run into issues, definitely check the site on Facebook and the hosted version on your site (when you can). Even though others shouldn't/won't see it that way, it can help to narrow down where issues are (in the iFrame/Facebook.com or on your site itself).

Thanks, and keep us posted!
The topic has been locked.