Swift / Instagram API - 如何使用 Instagram 应用进行授权
Swift / Instagram API - how to auth with Instagram App
我需要 AccessToken
让用户在我的应用程序中授予访问他自己的 Instagram 帐户的权限。我已经在 Instagram 开发中心注册了所有内容。
目前我正在使用 SimpleAuth 接收来自 Instagram 的 AccessToken
。
到目前为止一切正常。我收到令牌并可以使用它。
但是 当我第一次想登录时,我注意到,我不知道我的密码是什么。我总是使用 Facebook 登录或已经登录。我不想让我的用户面临同样的问题并让他们重置他们的 Instagram 密码...
我用谷歌搜索了一段时间,但没有成功。 有没有办法使用 Instagram 应用程序对用户进行身份验证并接收 AccessToken?
我已经在 info.plist
将 instagram 添加到 LSApplicationQueriesSchemes
并将图像发送到 Instagram 应用程序 post 他们正在工作。所以调用应用程序本身不是问题。
这是我当前在 UIViewController 中打开 WebView 的代码 - 但用户必须使用用户名和密码登录。
更新代码:
我有什么可能性?非常感谢帮助。
不,您目前无法使用 Instagram 应用程序验证 Instagram 帐户。
但是,Web 视图似乎是一种合理的登录方式,尤其是在 iOS 9 及更高版本中,因为它不需要用户在应用程序之间切换,也不需要点击对话框来切换应用程序。唯一的痛苦是用户输入用户名和密码,但希望他们只需要输入一次(除非他们更改帐户)。
Facebook 有类似的问题,选择使用网页视图登录作为默认身份验证方式。
For the people who are not signed into Facebook on Safari, they will only need to log into Facebook one time. After that, every future Facebook Login experience is fast and convenient with no extra steps. This means that as adoption of this flow increases over time, so does the quality of the experience people get. In contrast, the traditional fast-app-switch flow does not improve over time: The additional dialogs continue to appear in both directions for every new app that people log into.
https://developers.facebook.com/blog/post/2015/10/29/Facebook-Login-iOS9/
我需要 AccessToken
让用户在我的应用程序中授予访问他自己的 Instagram 帐户的权限。我已经在 Instagram 开发中心注册了所有内容。
目前我正在使用 SimpleAuth 接收来自 Instagram 的 AccessToken
。
到目前为止一切正常。我收到令牌并可以使用它。
但是 当我第一次想登录时,我注意到,我不知道我的密码是什么。我总是使用 Facebook 登录或已经登录。我不想让我的用户面临同样的问题并让他们重置他们的 Instagram 密码...
我用谷歌搜索了一段时间,但没有成功。 有没有办法使用 Instagram 应用程序对用户进行身份验证并接收 AccessToken?
我已经在 info.plist
将 instagram 添加到 LSApplicationQueriesSchemes
并将图像发送到 Instagram 应用程序 post 他们正在工作。所以调用应用程序本身不是问题。
这是我当前在 UIViewController 中打开 WebView 的代码 - 但用户必须使用用户名和密码登录。
更新代码:
我有什么可能性?非常感谢帮助。
不,您目前无法使用 Instagram 应用程序验证 Instagram 帐户。
但是,Web 视图似乎是一种合理的登录方式,尤其是在 iOS 9 及更高版本中,因为它不需要用户在应用程序之间切换,也不需要点击对话框来切换应用程序。唯一的痛苦是用户输入用户名和密码,但希望他们只需要输入一次(除非他们更改帐户)。
Facebook 有类似的问题,选择使用网页视图登录作为默认身份验证方式。
For the people who are not signed into Facebook on Safari, they will only need to log into Facebook one time. After that, every future Facebook Login experience is fast and convenient with no extra steps. This means that as adoption of this flow increases over time, so does the quality of the experience people get. In contrast, the traditional fast-app-switch flow does not improve over time: The additional dialogs continue to appear in both directions for every new app that people log into.
https://developers.facebook.com/blog/post/2015/10/29/Facebook-Login-iOS9/