Topic-icon Jomsocial/FB... pulls in same FB post into Jomsocial more than once

Active Subscriptions:

None
Noticed that if login using Facebook to my Joomla site it will pull my current FB status into JomSocial. The problem is that it 1. Will pull in an old status, even one from 2 months ago (yeah I know I don't update my FB Status too often), and 2. If you login twice in the same day through FB, it will post the same FB status into JomSocial twice.

Alex, I talked with you about this at JWC and you seemed to say that this should be resolved but last week I installed the latest version and could still reproduce this issue.

I would suggest that 1. It should only pull the status if it is within the last 24 hours, and 2. should def. not pull the same status twice.

Please let me know where things are at in regards to this. Thanks for the awesome component!!!

James
Mango Tree Media
The topic has been locked.
Support Specialist
James,
Great to hear from you. I remember discussing this with you and actually did come home and investigate. Back in June, there was a similar issue reported that we did fix. It sounds like some changes in 2.6 or 2.8 may be causing a problem in some cases though as we heard it from you and from another user in January. We actually started looking into yesterday to get it right for our upcoming v5.0 release. However, we couldn't recreate the problem from a quick test.

Our status was a simple text message in Facebook. Can you give an example of what yours is that is being imported every time? Is there a link, image, or anything else other than text? Just need to understand why things are different, and then I think we should be able to fix that issue quickly.

As for the import for only the last 24 hours, that's an interesting idea. I think 24 hours would be too brief of a period for a lot of our users, but I can see some reasonable timeframe. Let me look into it a bit. That change would actually be easier in the current v4.x release than the upcoming v5.0 release due to the overhaul of the plugin system we're doing. I think it should still be do-able, just need to see how.

Thanks for the feedback, and we'll get you fixed up!

Alex
The topic has been locked.
Support Specialist
Oh, also, I tested this on our demo site .. our FB status is just "test status" right now and after multiple log ins and outs, it wasn't re-imported. Again though, if you can get it see it there, it'd be great to know what was imported and what your status was.

Alex
The topic has been locked.
Active Subscriptions:

None
I was traveling last week so couldn't follow this up. Doing some more testing this morning to see if I can reproduce again... 1st test did NOT repost.
The topic has been locked.
Support Specialist
James,
Glad you're back to do some testing. It sounds like you tested with a simple text string and it didn't re-post, as you expect, right? If so, let us know a status update that does repost so we can recreate that and test more.

Thanks!
Alex
The topic has been locked.
Active Subscriptions:

None
Ok, so I was talking with the client and got to the bottom of the issue.

1. Using the new features, JomSoc is now pushing JomSoc status updates to the user's FB account. (this works for my clients account but not for mine, but that's a different ticket). So that means the status update exists first on JomSoc then is being pushed to FB.
2. Since it now exists in FB, on the next login it is pulling it back down to JomSoc. THUS the double-posting.

So its only pulling once from FB, but it is pulling an update that itself originated from JomSoc to begin with. So I guess the fix would be to NOT pull down FB Status' if there is a matching status update already in JomSoc. Maybe it could compare to the last five? I don't know if that is too hacky. But you get the point.

Hope that makes sense.

Thanks,
James
The topic has been locked.
Active Subscriptions:

None
Hey Alex, any thought on this subject? Client is wondering what solution I might provide.
The topic has been locked.
Support Specialist
James,
Very sorry. I don't have an exact answer right now, but really do appreciate your steps to recreate above. We're hoping to get to this over the next few days and should be able to come up with a solution then.

Thanks,
Alex
The topic has been locked.
Support Specialist
James,
Whew! Sorry on the delays for this. I just got into dive into the situation a bit more, and unfortunately, need to ask a few more questions. We did some testing, and couldn't recreate the problem. Additionally, our socialprofiles plugin for JomSocial does actually check that the last post isn't the same as the one attempting to be pulled in. That does mean that if the post in FB is further back in the JomSocial stream, it could be duplicated.. however, that really shouldn't happen if you think through it, since all posts from JS should go to FB, which means only the last should be duplicated... there are exceptions and possibilities where that would break down, but I don't think it's the 'general' case.

Now, our testing was using JFBConnect along with:
* the Social Profiles - JomSocial plugin. This is what would import the status *from* Facebook on login/registration
* The JFBC JS Activity - Community plugin. This is what JFBConnect uses to 'push' status updates in JomSocial to Facebook

In JomSocial v2.8, the option to push statuses to Facebook was added. I'm not sure if you're using that feature. If so, honestly, you shouldn't be. When using JFBConnect, you should disable the integration built-in to JomSocial, so that functionality shouldn't be what's 'pushing' status. If you are using that feature for some reason, it's possible our check for the 'same status' would fail (maybe an extra space or different encoding or something like that).

So, again, I don't think you should be using that feature, but maybe you are. If so, let us know.. and also, let us know if there's a reason you still want JomSocial's integration enabled when you're also using JFBConnect. I believe we do everything (and a lot more) for FB integration than JomSocial provides.

Either way, it's possible I'm testing wrong. I've definitely looked over the code much more thoroughly now though and can help investigate much, much quicker if we get more details on how to recreate.

Thanks for your patience,
Alex
The topic has been locked.
Active Subscriptions:

None
Finding this hard to test because other problem is that I cannot get my JS posts to go to my facebook profile. Posting a separate ticket.
The topic has been locked.