- Home /
Post Score to Facebook IOS
Hello,
I use these codes on android to post the score to facebook, it works well on android. But it doesn't work on IOS. I couldn't find what's the problem. What could be the problem?
public void ShareScoreOnFB(){
Application.OpenURL("https://www.facebook.com/dialog/feed?"+
"app_id="+AppID+
"&link="+Link+
"&picture="+Picture+
"&name="+ReplaceSpace(Name)+
"&caption="+ReplaceSpace(Caption)+man.Score+ReplaceSpace(Caption2)+ScoreScene.highscore+
"&description="+ReplaceSpace(Description)+
"&redirect_uri=https://facebook.com/");
}
I use this one for Twitter, this one works on both platform.
public void ShareToTwitter (string textToDisplay)
{
Application.OpenURL("http://twitter.com/intent/tweet"+
"?text="+WWW.EscapeURL(textToDisplay)+
"&lang="+WWW.EscapeURL(TWEET_LANGUAGE));
}
What could be the problem for facebook on IOS?
did that worked in android facebook app ? I think that works only on browser but not in app. I am also looking to open Facebook app and then share the score, but no luck yet.....
No it doesn't work on android app. It only works on android browser. I need it to run in IOS. I couldn't find the solution yet.
Answer by harschell · Oct 28, 2014 at 09:51 AM
Please See the docs https://developers.facebook.com/docs/unity/getting-started/ios/ Use facebook SDk for Unity iOS and Android.