fbpx
  • Index
  • » Users
  • » alzander
  • » Posts

Posts

Posts

There's been 2 posts recently about a scenario that some people are unsure about, and would like to have your feedback on the suggested fix.  It's not exactly a 'bug', but can see how people would think it's not operating as it should be.

Background:
Creating a new Joomla user:
When we create a Joomla user using their Facebook information, we 'map' that user's Facebook ID to their Joomla ID.  This way, when they return and log in with their Facebook credentials, we automatically log that user into the Joomla side.  No real problems there.

Linking a FB account to an existing Joomla user:
When a user logs into Joomla with an account they already have, JFBConnect shows a "Connect this account to your Facebook account?" text.  If you click that, then your users are mapped.  Upon returning, you can use your FB credentials to log 'both' your users in.

Problem:
If a Joomla user (created through their FB account) user updates their Joomla password and returns to the site and logs in to that Joomla account (NOT logged into FB), JFBConnect still shows the "Connect this account to your FB account?" text.

- If they log into FB now with their original FB account, nothing changes.. the mapping stays the same, all is good.
- If they log into FB now with a different FB account, their mapping is updated (which could be bad).  The joomla user they had no longer has a FB account associated with it, and the Joomla user their logged in with is now mapped to 'this' FB ID.

Reasoning:
The reason that users are allowed to update their mapping is in case a user has a Joomla account on your site (lets say for 5 years), and comes one day and accidentally logs in with their FB account.  That creates them a 'new' Joomla user.  If we didn't allow re-mapping, that user would have to make a choice as to which user to continue using (or you as the admin would have to fiddle with some things to re-map them).

Generally, users only have one FB account, so this issue isn't that bad.  It may create some extra Joomla users on your site, but really not pain your users.

Solutions:
1) Leave it as is.  Allow you to change the text in the Login module to say whatever you want so the "Connect this account to FB" isn't confusing.
2) Lock 'mappings' so that once a FB ID is used, it can't be reused.  We'd update the login module to check the Joomla user and see if the user already checked in has a mapping and just not show that text.
3) Lock mappings. If a user performs a FB connection, come up with a way to ask a user if they already have a Joomla account, and want to use that for their mapping. 
4) Your suggestion!

Please keep in mind, one of our highest goals with JFBConnect is making it easy to use (and code).  Having 20 options to allow each method isn't really an option.  So we'd like to get some feedback for a few days, then make a decision.  We don't think that any path will be overly difficult, but want to make sure it's the best.

Thanks for your input!

No problem.. we're stressed too.. hoping that v2.0 will reduce forum posts for issues.. feature requests are always great to hear (though that doesn't guarantee they'll show up!)

Thanks for the good words, and glad to help you get set up.

There's something on your homepage that's interfering with the Javascript calls to Facebook.  If you go to inner pages (can't guarantee all), but this is an example.. Clicking on the "Blog Member" menu link:
<!-- m --><a class="postlink" href="http://www.pencerahanhati.com/index.php?option=com_myblog&Itemid=82">http://www.pencerahanhati.com/index.php ... &Itemid=82</a><!-- m -->

It works.

On the home page though, it doesn't show the FB Connect button or avatar.  The only advice I can give is to start unpublishing other modules that are showing up on your home page until it starts to work.. Then narrow it down and let us know where the conflict is.  We can look into it more if you need assistance from that point.

Does it work for you in both configurations, and always not just him?  It should be whatever page you're visiting from (with or without the www).  So for our demo page, we use a callback of:
<!-- m --><a class="postlink" href="http://facebook.sourcecoast.com/">http://facebook.sourcecoast.com/</a><!-- m -->

If you can give more information about the times it works (with you) and times it doesn't (with or without you), we should be able to get to the bottom of this.

There is no menu item to point to (the component shows up, but when you click on it, it doesn't do anything because there are no 'views' to link to).  Everything is done behind the scenes using (mainly) the login module to create your users and log them in.

As for the blank page, obviously somethings going wrong.  The best way to diagnose all of these issues is to turn on error reporting.  Do this by going to "Site->Global Configuration".  Click on the "Server" tab and set error reporting to "Maximum".  Go to any pages that go blank and report the error here.  Obviously, turn this off when done as many components spit out Warnings and Notices you won't want your users to see.

If you're saying that you only want Facebook users to log into your site, I think you should be able to accomplish this with a few minor modifications to the login module to hide things.  If you're looking for only specific members of a Facebook group to join, no, that currently can not be done.

To only allow Facebook users, this is how I'd start.. this isn't tested, but should get you close to what you're looking for:
In Joomla Configuration, turn OFF "New User Registration"
In JFBConnect Configuration, turn OFF "Create New Joomla Users".

This will be the hardest step since you have to look at some code:
Modify the jfbclogin module to remove a lot of the code about registering for the site and remove the form with the username/password for returning visitors to use (basically leaving the Facebook Connect button only and the logout button).  This file can be found in /modules/mod_jfbclogin/tmpl/default.php

The JFBConnect component is available here:
<!-- m --><a class="postlink" href="http://www.cmsmarket.com/updated/listings/Social+Networking/Community/JFBConnect">http://www.cmsmarket.com/updated/listin ... JFBConnect</a><!-- m -->

The link at the bottom of the Login Module would also take you to that page for more information about, or to purchase, the component.

Alright, I do apologize for the delay.

Button Text (XFBML)
We do have a quick primer on how to use the FBInvite module (to which you've responded already, which caused me to re-read it).  There was (fixed now) an error in that thread.

The below parameter will fix most of the questions you ask for (The string XFBML showing up all over):
Invite Type - This is what the blue button at the bottom of the invite module says for the user to click on. "Send XXXX Invitation" where XXXX is what you put in this field.

For anyone else who wants to read the full thread of configuration parameters:
<!-- m --><a class="postlink" href="http://www.cmsmarket.com/forum/index.php?f=38&t=44&p=150&hilit=xfbml&rb_v=viewtopic#p150">http://www.cmsmarket.com/forum/index.ph ... topic#p150</a><!-- m -->

Skip button
As for the "Skip" button, there is no way to get rid of this.  The invite module is pulled from Facebook's page, and they include that.  However, if you are interested, you can change the text to any of the following: "Skip this step", "Cancel", or "Skip" by adding the following line to this file:
modules/mod_jfbcinvite/tmpl/default.php (line 30):
<fb:multi-friend-selector
    showborder="false"
    actiontext="<?php print $inviteActionText; ?>" bypass="cancel">
Replacing "cancel" with either "step", "skip", or "cancel".
However, using firebug and looking at the returned code, the skip buttons are contained in the following id tags: "skip_top", "skip".  If you're interested in adding the following to your template css file, it may hide these 2 buttons (Not tested):
#skip_top, #skip {
display:none;
}

Sending Invitations
Finally, as for sending invites... There is no confirmation for sending invitations, you have to 'trust' Facebook on this (it's not done by the module itself).  You can use the module parameter "Post Invite Action Url" to redirect users to after the hit "Send".  This would ideally be a Joomla article you've created to thank your visitors (provide confirmation) for sending the invitation.

Invitations that are sent by selecting photos are sent to their Facebook home page, similar to other application requests (Lil Green Patch, Racecars, etc).  They are not emailed to the user.  If you use the "Invite friends not on Facebook" button in the top right and are inviting your friends this way, emails will be sent to them.  We just tested this on the facebook.sourcecoast.com site and it appears to be working.  If this isn't working on your site, could you try on our demo site and report your findings?

Thanks again for your patience, and sorry for some of the confusion with the module.

This sounds immediately like a PHP4 issue.  You need PHP5 to use JFBConnect (this is a limitation of the Facebook Connect PHP API's, and there's nothing we can do about it).

Can you check with your hosting company or technical person to see if you can upgrade to PHP5?  If you're already using PHP5, please let us know and we can investigate further.  Do not enable the plugins on your site until you can access the configuration page!

There's a whole thread already dedicated to this issue, and the new version of JFBConnect (v2.0) should fix this.  There's a reason it was called a Release Candidate.  We're not guaranteeing there's no bugs remaining now that we've removed that title, but we've been very proactive in getting 4 releases over the last month out to fix issues that people have been encountering.

<!-- m --><a class="postlink" href="http://www.cmsmarket.com/forum/index.php?f=38&t=53&rb_v=viewtopic">http://www.cmsmarket.com/forum/index.ph ... =viewtopic</a><!-- m -->

I'll try to get to your JFBInvite questions today, but they haven't been the highest priority, since we've been working on the fatal error you mentioned below and also have to spend extra time reading additional posts relating to issues that have already been reported (and even resolved by the time you posted this).

The fix was in the Authentication plugin and the component itself.  There were other changes in the login module described in the post below.  The fixes in the default.php you should probably be performed on your file even if your not using SH404, but frankly, if your site is working as-is, I'd leave it current/smile

I just tried to create an account on your site, filled out the profile, did not upload a phot, and received the activation link correctly.  Clicking it led me to:
<!-- m --><a class="postlink" href="http://urfestival.com/Activate-account.html?activation=72d4a6817a62866d1d09c12513075f57">http://urfestival.com/Activate-account. ... 2513075f57</a><!-- m -->
Which states:

Activation Complete!
Your Account has been successfully activated. You can now log in using the username and password you chose during the registration.

What are you seeing?

For those affected, this issue should be closed in the 2.0 release (now available as of 3/2/09).  If you still experience this issue after installing the new version, please let us know as soon as possible.

Just so it's clear, we (SourceCoast) are not the author's of this module.  The author's support form is below.  You're more than welcome to post issues here (and I'll try to get "Ceshelman" to check in here every once in a while for related questions).

<!-- m --><a class="postlink" href="http://www.cmsmarket.com/forum/index.php?f=43&rb_v=viewforum">http://www.cmsmarket.com/forum/index.ph ... =viewforum</a><!-- m -->

Definitely let us know if you get it going.  It looks neat on his page, you must be logged in on FB to see it, I believe... actually.. is that your problem? current/smile

Good questions, and I'll take them each point by point below:
When a logged in session is left for too long, it seems Facebook logs the Joomla site out, and throws an error message when trying to access the Joomla site. THe only way I could get around this was to completely close the browser to clear the session.
This is one of the 2 bugs that were fixed in the (just released) 2.0 version.  Please try this version and definitely post here if you're still experiencing this issue.

My Facebook invitees didn't seem to receive their invites.
You're the 2nd post, I believe, that's mentioned this.  Now that the 2.0 stable component is out, this is going to be the next problem we'll be investigating.  We don't think it's affecting all sites, so we may ask for more information about your configuration if we can't easily reproduce it on our test servers.

But the main request/question is when you envisage this component being able to post to the Facebook wall/feed any new articles submitted on the site. THis would make the component perfect.
While I haven't used it, another author has posted the following module below.  I looked at it on his site (you can see the demo page if you go to his forum post), and it looks like what you may be looking for (you have to log into his site first and click on an article to see it in action).  Again, it's not ours, but we plan on helping developers create and distribute their own products so you can customize your JFBConnect site however you'd like.  If it works, let others know, and if you want more or changes, let the author know!
<!-- m --><a class="postlink" href="http://www.cmsmarket.com/extensions-directory/listings/Extension+Specific/JFBConnect/Facebook+Comments+for+JFBConnect+powered+sites">http://www.cmsmarket.com/extensions-dir ... ered+sites</a><!-- m -->

Hope this helps

Can you post the exact error message your getting?  This isn't an issue I'm familiar with.

If the zip file isn't working, can you try unzipping the file locally, ftping the entire contents to a directory on your server, and then using the "Install from Directory" option in Joomla?

Maybe you've posted it before, but whats your site?  I just tried this on our test site (Joomla activation enabled, create new Joomla user, not using JomSocial..) and didn't see any issues.

Yup, that question gets asked a lot, but in short.. updates are definitely included for the foreseeable future.  This is at least during all of Joomla 1.5, we're investigating the new user system of Joomla 1.6, but can't really speak on the difficulty with that yet (and hence, whether that would be a separate release or not).

What happens when you go to the site?  It seems to be working for me.. swear I didn't do anything  current/big_smile

http://facebook.sourcecoast.com

Sorry, I must have glazed over this post at some point.  Assuming you're using the built in Joomla registration, the below link should work for you:

index.php?option=com_user&view=user&layout=form

This will automatically redirect a new user to the Joomla user profile page where they can see their profile information.  It won't force them to change it, but it helps.  If you'd like to use a different page, because of a different profile component or whatever, the best way to find the right link is:

1) Go to the Joomla admin area
2) Click on Menu->Main Menu (or any menu)
3) Click "New" as though you're creating a new menu item
4) In the tree list, select where you'd like the user to go (for the above, I chose User->User->Default Form Layout)
5) Click Save
6) In the new menu item, where you can set the title, alias, etc.  The "Link" value is what you'd use as the link
7) Hit cancel so as not to actually save the new menu item.

Are you sure your system is running PHP v5 or higher?
When configuring, was it right you hit 'apply' that you saw the error your seeing now?  Or was there something else that you were doing when it stopped.  This is a new problem
Did you enter your API Key and Secret Key?

The best way to quickly 'undo' this would be to access your database (through plesk, cpanel, PHPMyAdmin, etc), finding the Namespace plugin in the jos_plugins table, and setting the published value to 0.  I'm not sure of your technical skills, so there's another option below.

- Unzip the com_jfbconnect package locally.  FTP into your site and copy all the files from the component/helpers directory to components/com_jfbconnect/helpers directory.
- Unzip the file 'admin/packages/plg_system_jfbconnectnamespace_j1.5_v2.0.zip' locally.  Upload the 2 files inside to your Joomla /plugins/system directory.

This may or may not fix the issue, but hopefully will help.  If you're able to get back into your system, unpublish the Namespace plugin the first chance you get.

Alright, we think we have a solution for the SH404 issues that we've had, but would like to have any of you affected make minor changes to 2 files to test first.  If you can't, that's fine, we'll post RC4 with these fixes early this week, but would like to have some wider testing first.  Also, if you notice other problems that may be related, post them here.

Cause: Joomla router is converting '&' symbols in the URL to '&' which then is getting sent to Facebook and back again, and SH404 isn't routing these back to the JFBConnect component correctly.

Solution:
In the SH404 configuration, under the "By Component" tab, switch the first column for JFBConnect from "(use default handler)" to "Skip".

Modify the following 2 files:
/components/com_jfbconnect/helpers/facebookhelper.php  (~line 26, remove JRoute::_() function call):
    function getFacebookUserLoginLink()
    {
        #return JRoute::_("index.php?option=com_jfbconnect&task=loginFacebookUser");
        return "index.php?option=com_jfbconnect&task=loginFacebookUser";
    }

/modules/mod_jfbclogin/tmpl/default.php (Add JRoute::_( xxx, false) to 2 function calls)
line 13
    Change: var fbUserLoginLink = "<?php print JFBConnectFacebookHelper::getFacebookUserLoginLink(); ?>&return=<?php echo $fbLoginUrl; ?>";
    To: var fbUserLoginLink = "<?php echo JRoute::_(JFBConnectFacebookHelper::getFacebookUserLoginLink()."&return=".$fbLoginUrl, false); ?>";

line 30
    Change: window.location = 'index.php?option=com_jfbconnect&task=logout&return=<?php echo $logoutUrl; ?>';
    To: window.location = '<?php echo JRoute::_('index.php?option=com_jfbconnect&task=logout&return='.$logoutUrl, false); ?>';

Thank you for your patience.  Any custom modifications to the login template should not be affected (though the line numbers above may obviously be different).  Please post results!

This error is being discussed at the thread below.
<!-- m --><a class="postlink" href="http://www.cmsmarket.com/forum/index.php?f=38&t=53&rb_v=viewtopic">http://www.cmsmarket.com/forum/index.ph ... =viewtopic</a><!-- m -->

We're actively investigating this issue.

Yeah, no way to allow the user to enter their own name for now.  Just like everything, if that's requested a lot, that will work its way in eventually.

Please make sure that you use either the {rand} or {fbid} fields in the username to semi-guarantee uniqueness.

We are actively looking into this.

I'm assuming you're using SH404 as well?  Just trying to get as much info as possible so we know if other components may also be causing the issue.

  • Index
  • » Users
  • » alzander
  • » Posts

Board Info

Board Stats
 
Total Topics:
11859
Total Polls:
0
Total Posts:
49712
Posts this week:
6
User Info
 
Total Users:
48457
Newest User:
DavidZX
Members Online:
1
Guests Online:
1250

Online: 
JurrienPhilips
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount