Inviting Facebook Friends - How do they do that?

So I keep coming across sites where upon signing in with facebook, you are presented with a window to invite your facebook friends.

Could somebody explain to me how this is done?

I would love to have people signing in with facebook be given this option immediately, followed by sharing it on their wall.