Reputation: 251
In the past days I've been reading the Facebook documentation. What I can't get to work is how to make a working script so users can invite their Facebook friends, as friends in my system, who are already registered on my site, via my social connection script made with the Facebook SDK. I would love to give you guys some code to work with, but I need to be honest: can't figure out in any way to make this work. My next step was to search on Google and GitHub. I did find something similar, but not that good. So currently my last hope now is some IT-guru on Stackoverflow. Ideas, tips and links would be very helpful.
Edit:
My intention is to use e-mail to make it work.
If you don't understand the question or have some questions - feel free to ask.
Regards.
Upvotes: 0
Views: 296
Reputation: 96306
You should do this based on Facebook user id, not email.
Save the FB user id to your database, and when a new user registers on your site, pull their friend’s ids from Facebook and compare them to the ids in your database.
Upvotes: 1
Reputation: 2156
You may get the code from here, http://developers.facebook.com/docs/reference/dialogs/requests/,where you can use the 'to' field for selecting your friends to invite.
Upvotes: 0
Reputation: 8179
You can do this via email address
.
Users in your website using their email address and Users of facebook also uses their email address.
You can check if someone invite his friends from facebook. than script check email address available or not in your database. you can show available users via his/her email.
Upvotes: 0