Frage

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?

War es hilfreich?

Lösung

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.

Andere Tipps

Sorry, launching the Facebook native app straight into a group on iOS is not supported at this time.

The correct URL to open Facebook in mobile safari would be http://www.facebook.com/groups/roadsmash in your case.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top