Вопрос

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?

Это было полезно?

Решение

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.

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top