从PHP Web服务自动发布鸣叫没有userinteraction多个Twitter帐号 [英] Post a tweet automatically from a PHP webservice without userinteraction for multiple twitter accounts

查看:249
本文介绍了从PHP Web服务自动发布鸣叫没有userinteraction多个Twitter帐号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对PHP脚本其工作方式below.The数据库的要求是有一些20名单twitterIDs.Webapp应该能够发布代表任​​何在list.This给出的twitterID的鸣叫发生后门这意味着没有用户交互将参与像重定向到Twitter的验证页面,让twitterApp访问某些东西,用户将接受让access.User不知道这个后端运行。

I have a requirement for php script which works as below.The Database is having list of some 20 twitterIDs.Webapp should be able to post a tweet on behalf of any of the twitterID given in the list.This happens back-door that means no user interaction will be involved like redirecting to Twitter Authentication page to allow twitterApp to access some stuff and user will accept to allow access.User doesn't know about this back-end operation.

我的问题是:


  1. 这可能/可行吗?

  2. 如果可能的话,我应该如何接近开发路线图。我的技术是基于PHP的,涉及REST API集成到智能手机客户端。

期待着一些深层次的解释。

Looking forward for some deep explanation.

推荐答案

您需要的不仅仅是Twitter的ID的详细张贴代表他们。他们必须先验证应用程序。

You need more than just the twitter IDs to post on their behalf. They will have to authenticate the application first.

这会产生两个标记 OAuthToken OAuthTokenSecret ,它可以存储在数据库后端,因此,从你的PHP后端用于发布代表的用户,直到用户deauthorizes您的应用程序,在这一点 OAuthToken 将不再起作用。

This generates two tokens OAuthToken and OAuthTokenSecret, which can be stored in your database back-end and consequently, be used from your PHP back-end to post on behalf of the user, till the user deauthorizes your application, at which point OAuthToken won't function anymore.

微博OAuthTokens做的不可以到期,但用户可以撤销你的访问。

Twitter OAuthTokens do NOT expire, but the user can revoke your access.

您可以使用 Twitter的PHP库之一在PHP中实现上述

这篇关于从PHP Web服务自动发布鸣叫没有userinteraction多个Twitter帐号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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