Invite twitter friends to site?

我的未来我决定 提交于 2020-02-02 01:59:10

问题


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?


回答1:


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.




回答2:


Now twitter has the api by which we can get the contacts if a user. check this-twitter api




回答3:


Just for someone passing by, right now Twitter has App Card which represent mobile applications on Twitter and to drive installs. It allow name, description and icon. It is not exactly like inviting on Facebook. However, it drive user to install the app easier please checkout the link.

https://dev.twitter.com/cards/types/app



来源:https://stackoverflow.com/questions/7895138/invite-twitter-friends-to-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!