- Home /
Open Facebook fan page in Unity iOS app
I want to link to my Facebook fan page from my Unity iOS App.
Using Application.OpenURL(https://www.facebook.com/mypage) works on Android, but in iOS it opens the Facebook app to the news feed.
I have also tried using fb://page/123456 like described here: http://answers.unity3d.com/questions/777838/unity-like-facebook-page-through-app.html
but that also does not work. (Perhaps not surprisingly since that answer was for an Android app as well)
Have you tried using Application.OpenURL(https://m.facebook.com/mypage) Only change is the m.facebook.com If that doesn't work comment back and I will look into it further.
Thanks! What happens on the iOS version is that it opens up the Facebook page in Safari. In an ideal world, the iOS version would open the Facebook App if it was installed directly to the fan page, and if not, go to the mobile version. But if that's the best I can get, it's certainly an improvement.
This should help, but it's finky and subject to fb changing stuff like they love to do. http://forum.unity3d.com/threads/open-facebook-app-ins$$anonymous$$d-safari-ios-c.143623/ You need to change "page" to "profile" Also that thread has a nice way of launching the FB app while checking if it is installed on android as the facebook.com URL doesn't launch the FB app on many devices (unless they recently changed that, finally...)