新的Facebook iOS应用程序的自定义URL方案 [英] Custom URL scheme for new Facebook iOS app

查看:98
本文介绍了新的Facebook iOS应用程序的自定义URL方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道自定义URL方案是在新的iOS应用程序中打开Facebook页面。我使用的是fb:// page / PAGE_ID,但是在最近更新的Facebook iOS应用程序中似乎不起作用,它只是打开应用程序,但不会进入所需的页面。

解决方案

我在 developer.facebook.com



使用个人资料替换 您的新陈述将是:

  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@fb:// profile / 247377102029332 ]]; 


Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn't seem to be working in the recently updated Facebook iOS app, it just opens the app but doesn't go to the required page.

解决方案

I got this answer at developer.facebook.com:

Replace the word page with profile and it will work. Your new statement will be:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/247377102029332"]];

这篇关于新的Facebook iOS应用程序的自定义URL方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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