当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Open Application Page in Safari

问题描述:

Is is possible to open an Application's page from iOS in Safari?

When I try to open the following page, I'm redirected to a mobile version of Facebook on the page "Pages You May Like"

[[UIApplication sharedApplication] openURL:

[NSURL URLWithString:@"https://www.facebook.com/pages/Appinion/130580070430657"]];

I'd be happy with redirecting to the full version of the site; I've tried appending ?m2w with no luck.

网友答案:

Typically I found the answer almost straight away by experimenting a bit

The URL format for mobile versions of the page is:

https://m.facebook.com/pages/<APP_NAME>/<APP_ID>?id=<APP_ID>#!/profile.php?id=<APP_ID>

I imagine this could be shortened..

分享给朋友:
您可能感兴趣的文章:
随机阅读: