Programmatically create users in Drupal site from facebook friends
Hi All,
first really I have to thank you for the great effort in Drupal For Facebook! It's great.
I'm developing a site in Drupal and want that a user who can buy a product on my site, can choose among his fb friends to send a note about a gift he provided to his friend.
I'm able to retrieve the list of friends and also I see it's quite easy to send a message (facebook_send_message() or using the Send Dialog feature... please correct me if I'm wrong :) ).
Now the critical point: I would create a user on my site who is the friend receiving the product(of corse if he's still not registered as my site user) so that when he access my site using fb connect, he automatically see he received a product and can check what are the details of it.
Thank you all in advance,
Vincenzo
- Forums:

You might find
You might find fb_friend.module helpful. It will render an invite form so that a user can invite friends to a specific page, or to your site in general. It works in D6 and maybe in D7 - I'm not certain it has been updated.
Facebook won't tell you from the invite form which friends the user has invited. This is to prevent apps from being too spammy. And anyway I wouldn't recommend creating a user before the user has visited a site, so instead build an invitation url that lets you figure out exactly what the user has clicked on to get sent to your site. That is do all that work when the user accepts the invite, not when the invite is first sent.