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

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

问题描述

我在我的应用程序中使用instagram api。根据文档我将用户重定向到api.instagram.com/oauth/authorize,让用户使用其instagram帐户登录。用户看到的页面是:





这个工作很好,但是许多instagram用户使用Facebook登录到他们的instagram。如何允许用户使用Facebook登录instagram以在我的应用程序中验证用户?当我阅读它时,听起来很复杂:)



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





更新:仅在加载时发生我的ios应用程序中的UIWebView中的auth屏幕。



我也注意到UI Web View有JS错误:
fb-rootdiv没有已创建,自动创建,来源: https://connect.facebook.net/en_US/ sdk.js



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

解决方案

你实际上不需要,如果你在Facebook上注册。当您将用户名和密码放在文本框上时,同一网站将要求您进行Facebook授权。



希望我能帮助您。


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 :

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:

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

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

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

解决方案

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.

Hope I could help you.

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

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