× Joomla Facebook Connect support forum

Topic-icon duplicate messages

Active Subscriptions:

None
13 years 4 months ago #6567 by whitehorse
Hi, I'm getting a duplicate "Facebook profile successfully connected" message when I have a logged in (to joomla) user who then connects to their facebook profile.
(att).
Any suggestions?
File Attachment:


Note: there's no problem for a new user signing up on my site for the first time via their facebook credentials (msg shows "Facebook profile successfully connected." ...just once).

thanks!
The topic has been locked.
Support Specialist
13 years 4 months ago #6573 by alzander
Replied by alzander on topic duplicate messages
I'm honestly unsure. Are you importing profiles into multiple components (CB and JomSocial or JS and Kunena)? Also, what version of JFBConnect are you using? We changed the connection logic in the 3.1 release, so want to make sure we're investigating the right issue.

Thanks
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6577 by whitehorse
Replied by whitehorse on topic duplicate messages
I'm using 3.1 ... even the latest from yesterday (1/6/2011) afternoon.
I'm have JomSocial and Kunena, so I tried again with Kunena plugin disabled ... still getting the duplicate msg.
I have modified the files somewhat but mostly minor ini and css stuff -- nothing (I don't think) to cause this ??
Also I just noticed the attached ... could be related. It's a user I signed up via FB, then logged out (of both), then logged back into site (not with FB), then "reconnected" to FB. Then got the duplicate (contradictory) messages but resulted in a clean reconnect.
File Attachment:


thanks!

ps. I totally love this extension
The topic has been locked.
Support Specialist
13 years 4 months ago #6592 by alzander
Replied by alzander on topic duplicate messages
Glad to hear you love our work. We put a lot into it, and it takes a lot of work to add features and keep up with Facebook, but it's worth it and a lot of fun. Thanks!

As for the duplicate message, we're dumbfounded. I searched through the code to verify where that message is set, and the only time it should display is during an initial registration via Facebook (which includes a re-mapping, since that's a 'first').

To rule out some weirdness, can you try updating the string in the /languages/en-GB/en-GB.com_jfbconnect.ini file to something different (anything) and see if that's what's reported for both strings still? If it's only for one, that may be an indication of an incomplete upgrade to 3.1 (which shouldn't be the case, but again.. dumbfounded).

Additionally, do you have anything on your site (mainly plugins would do this) that may redirect the user after logging in in special cases? This can be to update their profile or to force them to a specific page.. etc. Anything like that that you can think of may help us narrow it down.

Sorry for the troubles. I realize your site isn't on fire, so this isn't the most critical thing, but never fun dealing with issues of any sort.

Thanks again!
The topic has been locked.
Support Specialist
13 years 4 months ago #6602 by alzander
Replied by alzander on topic duplicate messages
Alright... we're dumb. Found the issue, and, believe it or not, we're displaying that message twice!

If you want to delete the extra (incorrect) message, edit the following file:
/components/com_jfbconnect/controller.php, at line 112:
$app->enqueueMessage(JText::_('MAP USER SUCCESS'));

Just delete that line. You'll see, about 3 lines above that is the exact same line. Sorry for the troubles. This will obviously be removed in the next point release as well.

Thanks for pointing it out!
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6624 by whitehorse
Replied by whitehorse on topic duplicate messages
Yay you found it! I commented out that line and the problem went away!

In the meantime I had un/reinstalled and noticed a couple minor things I was going to bring up:
1. When one uninstalls the component, 2 tables remain in the DB: jos_jfbconnect_config and jos_jfbconnect_user_map. This is probably expected & desired, but thought I'd mention it just in case.
2. After upgrading to 3.1.1, the little green status checkmark in the 'overview' page is missing (I actually noticed this a couple days ago after I upgraded from 3.1.0 to 3.1.1) .
File Attachment:


I've got one more issue, pertaining to a redirect problem, but I'll post that in a separate thread. Thanks Alex!

Michael
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6625 by whitehorse
Replied by whitehorse on topic duplicate messages
Well, actually while the "duplicate messages" issue went away, the "contradictory messages" issue persists.

User signs up with fb and is logged in, then signs out of fb (but remains joomla logged in), the reconnects to fb with "reconnect" button... next screen shows:
File Attachment:


I uninstalled Kunena but the issue persists. Also I wondered if this issue (and a redirect issue I'm having) could be due to Sociable Studio's JS Toolbar Editor, so I disabled that com/plugin, but the issue persists.

thanks,
Michael
The topic has been locked.
Support Specialist
13 years 4 months ago #6628 by alzander
Replied by alzander on topic duplicate messages
Michael,
1) Tables remaining after installation - That's very intentional. It preserves configuration settings and Facebook->Joomla mappings so that if you install again, that information isn't lost. We don't have an automated way to remove those tables right now. It's not optimal to leave tables hanging out, we agree. I can see making a 'cleaner' tool.. one day.
2) The checkmark for the component is intentionally missing. We thought about it right before release, but the check just tells you if the listed extension is published. Since you only see the extension check in the component, it's unnecessary to say the component is there.. we agree though that it should be there to avoid this question in the future and will likely be added in soon :)

We'll look for the cause of those messages and see if they're real or a duplicate message again. As for redirection, if you have "Automatically log Facebook Users In" enabled, and are having issues with the login redirection, that will be fixed in the 3.1.2 release coming early next week :) If not, ask away!
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6632 by fb_729628948
Replied by fb_729628948 on topic duplicate messages
Wooo I just came to post the same issue and i found it already here, I got the suscription yesterday and I'm happy with it, everything works fine people is login using the facebook account.

I'll apply these changes to remove the double msg

Thanks
The topic has been locked.
Support Specialist
13 years 4 months ago #6637 by alzander
Replied by alzander on topic duplicate messages
Glad to hear it's working for you, and sorry you had to find this post in the forums. Again, this issue will be fixed in the next release (and hopefully the other conflicting message mentioned above).

Good luck!
The topic has been locked.