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

Shadlington’s picture

+1 for this feature

vectoroc’s picture

Status: Active » Needs review
timl’s picture

+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.

Anonymous’s picture

Subscribe

YK85’s picture

Status: Needs review » Active

Subscribing - changing status to 'active' as no patch is available to be reviewed. Thank you

vectoroc’s picture

Status: Active » Needs review

changes are in code. I did'nt tested it, wanna involve community
try 2.x dev branch

korayal’s picture

Is 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.

korayal’s picture

It 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.

InTheLyonsDen’s picture

Subscribe

  • vectoroc committed e1b53c9 on
    #923268 : added Rule for Friend Invite #911432 : added fb icon to strem...
gobinathm’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing the issue. It was inactive for a long time & it's related to a Drupal Version which is not supported anymore