简体   繁体   English

Flickr在iOS应用中的集成

[英]Flickr integration in iOS app

I have an issue while integrating flickr in iOS app. 将flickr集成到iOS应用中时出现问题。 When I click on authorize button then it shows alert message as safari cannot open webpage because the address is invalid. 当我单击授权按钮时,它会显示警告消息,因为野生动物园无法打开网页,因为地址无效。 If anyone knows then please help me. 如果有人知道,请帮助我。

Thanks in advance. 提前致谢。

My best guess is you are missing URL SCHEME in your project plist. 我最好的猜测是您的项目plist中缺少URL SCHEME。 Below is the screenshot showing current sample from flickr sdk which I downloaded from github and there is a setup done for URL Scheme handling. 下面的屏幕快照显示了我从github下载的flickr sdk的当前示例,并完成了URL方案处理的设置。

Its called oAuth handling when SAFARI is finished verifying the credentials and want to return to the application it returns URL which can be handled by the application mentioned in plist and which we will handle from application delegate using following function So you need to provide your URL identifier and URL Scheme for your project which you can get if you register in flickr api. 当SAFARI完成验证凭据并想返回到应用程序时,其称为oAuth处理,它返回的URL可以由plist中提到的应用程序处理,我们将使用以下功能从应用程序委托处理该URL,因此您需要提供URL标识符和您的项目的URL方案,如果您在flickr api中注册,则可以获得该方案。

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
}

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM