微博同步问题求助.

WBOY
Release: 2016-06-23 14:26:31
Original
857 people have browsed it

微博 内容同步

我想在网站后台做个文章自动同步到新浪微博的功能;
现在不同浏览器或不同电脑上需要重新授权,也就是微博处理登录状态才能发送;
我怎么让他只授权一次,下次访问就不用授权了呢?

回复讨论(解决方案)

你这个问题问的真神奇。

看看微博有没有提供这种设置的接口。

没有登录时是会提示输入账号密码登录;
但我已经知道账号密码了,就是想让他自动登录,接口的参数不知道怎么把账号密码一块提交.

把内容同步到新浪微博,应该是调用新浪sdk 提供的api,这个api授权通过应该会返回给你一个 token,你同步消息的时候,把这个token再提交过去。
所以,你只要在用户授权第一次成功的时候,把返回的token保存到自己的服务器,在token失效前,用这个token应该都能把消息同步到新浪微博。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!