简体   繁体   English

从iOS App链接时,Facebook App不显示页面

[英]Facebook App does not display page when linked from iOS App

I'm working on iOS application. 我正在开发iOS应用程序。 Here is the code i used 这是我使用的代码

NSURL *url = [NSURL URLWithString:@"fb://page/5718758966"];

if ([[UIApplication sharedApplication] canOpenURL:url])
{
    [[UIApplication sharedApplication] openURL:url];
}

else
{
    //Open the url as usual
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://facebook.com/5718758966"]];
}

As I mentioned, this code has worked to open Facebook app but shows blank page; 如前所述,此代码可以打开Facebook应用程序,但显示空白页。 my question is if there is an alternative link I can use that will both open the app and direct the user to this specific page, or is this simply a Facebook bug? 我的问题是,是否有一个我可以使用的替代链接,它将同时打开应用程序并将用户定向到该特定页面,或者这仅仅是一个Facebook错误? Thanks! 谢谢!

代替“ fb:// page / 5718758966”,尝试使用“ fb:// profile / 5718758966”作为您的URL。

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

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