如何使用Instagram的API来验证用户时添加Facebook的身份验证登录页面? [英] How to add facebook authentication to login page when using instagram API to authenticate users?

查看:703
本文介绍了如何使用Instagram的API来验证用户时添加Facebook的身份验证登录页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Instagram的API在我的应用程序。每文档我将用户重定向到api.instagram.com/oauth/authorize~~V让他们的Instagram帐户的用户登录。用户看到的页面是:

I use instagram api in my app. Per documentation I redirect users to api.instagram.com/oauth/authorize to let the user login with their instagram account. The page the user sees is :

这工作正常,但不少用户Instagram的使用Facebook登录到自己的Instagram。我怎么能允许用户登录使用Facebook的在我的应用程序验证用户的Instagram?这听起来很绕口,当我读了它:)

This works fine but many instagram users use Facebook to login to their instagram. How can I allow users to sign in to instagram using facebook for authenticating users in my app? That sounded very convoluted when I read it :)

基本上,我希望用户看到以下内容:

I basically want users to see following:

更新:这只在UIWebView中加载权威性屏幕我的iOS应用内发生的时候。

update: This only happens when loading auth screen in UIWebView inside my ios app.

我也注意到,UI Web查看有JS错误:
中的FB-根DIV尚未创建,自动创建来源: HTTPS://connect.facebook。净/ EN_US / sdk.js

I also noticed that the UI Web View has JS errors: "The "fb-root" div has not been created, auto-creating", source: https://connect.facebook.net/en_US/sdk.js

我相信这是原因,但不知道如何解决它。听起来像一个Instagram的错误。

I believe this is the cause but not sure how to fix it. Sounds like an instagram bug.

推荐答案

您其实并不需要,如果你注册Instagram上与Facebook。当你把你的用户名和密码的文本框在同一网站会要求你为Facebook授权。

You actually don't need that, if you are registered on instagram with facebook. When you put your username and password on the textfields the same website will ask you for facebook authorization.

希望我可以帮助你。

这篇关于如何使用Instagram的API来验证用户时添加Facebook的身份验证登录页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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