邀请 Twitter 好友访问站点? [英] Invite twitter friends to site?

查看:29
本文介绍了邀请 Twitter 好友访问站点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

twitter 是否有类似于 facebook 应用程序邀请弹出窗口的功能?

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);

它会弹出对话框,您可以在其中选择 Twitter 好友,并向他们发送邀请,然后当 API 接受邀请时,您可以找到数据将他们重定向到网站...

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...

这在 twitter 上有可能吗?

Is this somehow possible with twitter?

twitter 是否有像 facebook 一样的邀请弹出窗口?或者可能会向选定的用户弹出多条消息?

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

推荐答案

Twitter 没有提供这样的邀请机制.你有两个选择.

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

  1. POST statuses/update 创建一条通用推文关注用户的每个人都会看到.
  2. POST direct_messages/new 发送私信给特定的追随者.
  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.

这篇关于邀请 Twitter 好友访问站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆