本文介绍了SoundCloud与Facebook的连接无法在iOS中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的iOS应用程序与SoundCloud集成在一起.我已经在"http://soundcloud.com/you/apps"上注册了一个应用程序,并获取了应用程序ID和密钥以编写身份验证URL:

I'm trying to integrate my iOS app with SoundCloud. I've registered an app at "http://soundcloud.com/you/apps" and got the app ID and secret key in order to compose the auth URL:

"https://soundcloud.com/connect?client_id=da3beb496ca5bd92e2ae39a4bf775cca&redirect_uri=rocksteady://oauth2&response_type=code"

"https://soundcloud.com/connect?client_id=da3beb496ca5bd92e2ae39a4bf775cca&redirect_uri=rocksteady://oauth2&response_type=code"

我只是简单地使UIWebView加载具有该URL的请求.按下与Facebook连接"按钮后,应用程序将重定向到Facebook登录页面.登录Facebook后,我被重定向回SoundCloud,最后调用了回调uri,并获得了访问令牌.在2012年3月15日,一切正常.

I simply made a UIWebView load a request with that very url. After pushing the "Connect with Facebook" button app redirected to the facebook login page. After logging in the Facebook I got redirected back to SoundCloud and finally my callback uri was called and I got my access token. All worked just fine on 15th of March 2012.

今天,我启动了该项目,并从Facebook获得了以下oAuth例外:

Today I've launched the project and got the following oAuth exception from Facebook:

{
   "error":{
      "message": "Missing redirect_uri parameter.",
      "type": "OAuthException",
      "code": 191}
}

我发现现在应用程序重定向到 https://graph.facebook.com/oauth/authorize?x=82&y=15 ,但是在3月15日,该网址为不同,并包含登录后重定向回SoundCloud所需的所有参数.

I've found out that now app redirects to https://graph.facebook.com/oauth/authorize?x=82&y=15 but on the 15th of March the url was different and contained all the parameters required to redirect back to SoundCloud after logging in.

使用台式计算机的授权过程运行良好(使用Safari和Chrome浏览器进行了检查).

The authorization process using desctop computer works just fine (checked using Safari & Chrome).

有人对如何解决此问题有想法吗?谢谢.

Does anyone have an idea on how to get this fixed? Thanks.

P.S.很抱歉,将一些链接发布为字符串.暂时没有足够的魔法来发布两个以上的链接.

P.S. Sorry for posting a few links as strings. Not enough mana to post more than two links for now.

推荐答案

Hej,

在这里从SoundCloud抢劫.这是我们面临的问题,我们正在着手进行修复.部署修补程序后,我将更新此帖子.

Robb here from SoundCloud. This is an issue on our end and we are working on a fix right now.I'll update this post when we have deployed a fix.

更新:已于UTC 2012年3月21日星期三16:07:43修复

Update: Fixed as of Wed Mar 21 16:07:43 UTC 2012

这篇关于SoundCloud与Facebook的连接无法在iOS中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 09:10