开发者

In rails, how can I import a user's facebook contacts when they sign up?

开发者 https://www.devze.com 2023-01-16 10:21 出处:网络
I have a signup form, and I wanted to make it so that they have the option of recommending this signup to all their friends in 开发者_运维百科facebook.

I have a signup form, and I wanted to make it so that they have the option of recommending this signup to all their friends in 开发者_运维百科facebook.

Is there a rails API/gem for doing this?

Is there an appropriate name for this?

Thanks!


Looking at the Extended permissions documentation, you don't get access to the email addresses of a Facebook user's friends (search for email and note the second column reads not available). If that's what you're trying to achieve, it's almost certainly not possible, without the user contacting each friend and asking them to visit your app (which I would imagine would have quite a low take-up, if only through inertia).


I guess you have two options:

  • popup a javascript before submitting the form to prompt the user wether he wants to share it with friends. You will use the js api http://github.com/facebook/connect-js (see the dialog section). This solution would avoid doing server side connection to the facebook api

  • Have a look a the Facebooker gem to do a stream_publish

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号