如何在iOS中以编程方式从微信注销? [英] How to logout from WeChat programmatically in iOS?

查看:123
本文介绍了如何在iOS中以编程方式从微信注销?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式从微信中注销,就像在Facebook和Twitter中一样. 有可能吗?

I want to logout programatically from wechat just like we do in Facebook and Twitter. Is it possible?

现在我已经使用 WeChat SDK 将微信成功集成到了我的应用程序中,但是当我按下共享按钮(在我的应用程序中)以在微信上共享图像,然后将我重定向到微信应用程序,然后在成功上传后返回到我的应用程序.

Righty now I have successfully integrated the wechat into my application using WeChat SDK, but when I am pressing the share button (in my application) to share the image on wechat then I am redirected to the wechat application and then after successful uploading return to my application.

但是可以停止重定向到微信应用程序吗?我只是想分享图像而不重定向到微信应用程序.以及如何在微信上一次共享多个图像?

But is it possible to stop being redirected to WeChat application? I just simply want to share image without redirect to WeChat application. And also how to share multiple image in once on WeChat?

推荐答案

似乎WeChat SDK没有提供一种无需重定向到WeChat即可共享某些内容的方法.

It seems WeChat SDK does not provide a way in which could share something without redirect to WeChat.

这是因为WeChat的共享功能不会在您的应用程序本地存储任何用户凭据(例如OAuth),因此它需要每次都重定向以知道要共享的人.

This is because the share function of WeChat does not store any user credential (like OAuth) in your app locally, so it need to redirect every time to know who want to share.

这篇关于如何在iOS中以编程方式从微信注销?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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