我正在使用SoundCloud Cocoa Wrapper API。要将用户 SoundCloud 帐户连接到他们的 Facebook 帐户,我使用以下方法:
[scAPI performMethod:@"POST"
onResource:@"connections"
withParameters:[NSDictionary dictionaryWithObjectsAndKeys:
@"facebook_profile", @"service",
@"http://imc", @"redirect_uri",
@"touch", @"display", //optional, forces services to use the mobile auth page if available
nil]
context:@"newConnection"
userInfo:nil];
效果很好:我可以看到在我的 SoundCloud 连接设置页面上建立了连接。问题是一旦 Facebook UIWebView 页面完成它的工作,屏幕就会变白,并且不会返回到我的应用程序的视图。换句话说,UIWebView 没有收到“离开”的消息。我如何发送这条消息?
有任何想法吗?
编辑 1
其他一些可能有帮助的信息:
#define kCallbackURL @"imc://oauth" //remember that the
myapp protocol also is set in the info.plist
PLIST URL identifier com.imc
PLIST URL Scheme Item 0 imc
谢谢 :)