Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invite twitter friends to site?

Does twitter have something similar to facebook application invite pop-up?

In facebook you can write this:

  FB.init({
    appId  : 'xxx',
    status : true,
    cookie : true,
    oauth: true
  });

  FB.ui({
        method: 'apprequests',
        message: 'My Great Request',
        data: '<?php echo $data; ?>'
    }, requestCallback);

And it will pop-up dialog where you can select twitter friends, and send invitations to them, and then when invite is accepted with API you can find data to redirect them to site...

Is this somehow possible with twitter?

Does twitter have invite pop-up like facebook? or maybe sending multiple messages to selected users pop-up?

like image 772
SharkTheDark Avatar asked Oct 25 '11 20:10

SharkTheDark


1 Answers

Twitter does not provide such an invite mechanism. You have two options.

  1. POST statuses/update to create a general tweet that everyone following the user will see.
  2. POST direct_messages/new to send a private message to a specific follower.

Be carful however, because posting excessively to either will get your users and your application suspended.

like image 117
abraham Avatar answered Oct 02 '22 18:10

abraham