× Joomla Facebook Connect support forum

Topic-icon JFBCRecommendation

Active Subscriptions:

None
11 years 8 months ago - 11 years 8 months ago #26179 by nicactiv
JFBCRecommendation was created by nicactiv
JFBC 4.2.4
Joomla 1.5.26

I use JFBCRecommendations to invite new users on our site.
Can I prevent sending multiple invitations to a single FB user?
If JFBC 4.2.4 can't do it,where can I updae it's sources to solve this problem?
Last edit: 11 years 8 months ago by nicactiv.
The topic has been locked.
Support Specialist
11 years 8 months ago #26184 by alzander
Replied by alzander on topic JFBCRecommendation
I'm assuming you mean the Requests feature, not recommendations. Right now, JFBConnect doesn't have a way to prevent sending the same request to certain users. To change would take a lot of changes, but I don't know all of the details.

Mainly, you'd need to get the Facebook User IDs that have already received the request from the xyz_jfbconnect_request_notifications table. Once you get those dynamically, you'll need to create a Javascript variable on the page which is used in the components/com_jfbconnect/includes/jfbconnect.js file. Specifically, in the jfbc.requests.popup function, you can add an exclude_ids parameter to the FB.ui call. For more information on the exclude_ids parameter, see the Facebook documentation:
developers.facebook.com/docs/reference/dialogs/requests/

I hope that description helps get you started, but it will take a bit of work to get going. Additionally, the feature you ask for is something we have plans to add, likely in the 5.0 release late this year. If you implement the feature before then, let us know how it goes.

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #26225 by nicactiv
Replied by nicactiv on topic JFBCRecommendation
I see... It'll take much more time...
But I'll try it... And I'll describe my results here, if I'll have some...

Anyway, thanks a lot, Alex!
The topic has been locked.
Support Specialist
11 years 8 months ago #26237 by alzander
Replied by alzander on topic JFBCRecommendation
Yes, it's a complicated thing that you're asking for and not as simply as one or 2 lines of code. If so, we'd be more than happy to investigate and provide the answer right now. We do have the investigation planned for later this year with an upcoming release, so you can wait for that release in a few months or try to get it going now on your own. Certainly if you run into issues, we can try to help guide you as necessary, but we won't be able to implement or test it for you now.

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26784 by nicactiv
Replied by nicactiv on topic JFBCRecommendation
I thought about this problem... And I agree that it is really difficult to find a solution on JFBC side because of some other problems. It will be more comfortable if FB API will support such function.
So I solved this problem in my own sources...
The topic has been locked.
Support Specialist
11 years 7 months ago #26803 by alzander
Replied by alzander on topic JFBCRecommendation
Glad to hear you figured out what you were trying to do. If you want to share your solution, or if you have any other questions we can help with, just let us know!

Thanks,
Alex
The topic has been locked.