Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am wondering if it is possible to trigger an event for each successful friend invite. We are planning to award userpoints for successful invites, we currently use the invite module and all works well. However, I am wondering what it would take to make this happen for facebook invites. Any suggestions?
Comments
Comment #1
Shadlington CreditAttribution: Shadlington commented+1 for this feature
Comment #2
vectoroc CreditAttribution: vectoroc commentedComment #3
timl CreditAttribution: timl commented+1 for this feature too. One of the key reasons to user FB is to achieve viral marketing and providing incentives to do so is one such way to foster this.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedSubscribe
Comment #5
YK85 CreditAttribution: YK85 commentedSubscribing - changing status to 'active' as no patch is available to be reviewed. Thank you
Comment #6
vectoroc CreditAttribution: vectoroc commentedchanges are in code. I did'nt tested it, wanna involve community
try 2.x dev branch
Comment #7
korayal CreditAttribution: korayal commentedIs there any development on this issue?
I can see that there is a trigger on Rules about invitees. But it doesn't work, since the invited user is forwarded directly to the homepage.
There should be some modifications;
1) If the site has already an account connected to that facebook account, the invitee should we forwarded to the homepage with a notification. Else, they should be forwarded to the fbconnect prompt page ( fbconnect/register/prompt )
2) When the invitee is forwarded to the registration page and if she/he has already registered to the site, then they will want to merge their account with their facebook account, so the invite option is not possible. ( fbconnect/link )
3) If the invitee doesn't have an account, then they will select the register page ( fbconnect/register/create ). So, there should be an extra parameter for the inviter there;
An extra optional field should be added to the registration page (which is the inviter uid) and also there could be some extra arguments on links, like:
fbconnect/register/prompt/%inviter
and
fbconnect/register/create/%inviter
where %inviter is the uid of the inviter.
When the user click to the register button with the inviter field is filled, then the event for "fbconnect_invite_accepted" should be invoked.
Comment #8
korayal CreditAttribution: korayal commentedIt would be better if we could combine fbconnect invite with the invite module, meaning the invitation link which is sent to the invitee should be created by the invite module.
But this can be a problem since the "accept link" is sent to multiple facebook contacts at the same time.
Comment #9
InTheLyonsDen CreditAttribution: InTheLyonsDen commentedSubscribe
Comment #11
gobinathmClosing the issue. It was inactive for a long time & it's related to a Drupal Version which is not supported anymore