Search code examples
unity-game-enginefacebook-unity-sdkfacebook-group

Open FB group page in browser using facebook-unity sdk


I am using facebook unity sdk in my ios game made using unity. I have a code in my game,

void OnClick() {
    Application.OpenURL("https://www.facebook.com/roadsmash");
}

which leads to group in facebook.

Facebook plugin detects all facebook links and opens native app if possible. The problem is native app is opening somewhere else, not in my group page. How can I open my group page in native app or can I open page in browser, not by opening fb native app?


Solution

  • I didn't find any acceptable solution to open page(not group) in native application, but there's an easy solution to open in mobile browser: just create new url with url-shortener(like bit.ly) and open with Application.OpenURL - it will be opened in browser.