How to share high score(string)/game result data on facebook ...please any one help me ....:(.

Friends i really need your help … its been i am trying to just show my game result on facebook :(…what i want, at the end of my game i get a result in string like high score… i just want to show that on face book as to post on your own facebook wall … i have installed facebook sdk 5.1, made an app id on developers.facebook page … put that name and the app id in the facebook settings in the unity3d editor … but i am not figuring it out how we will share the result … i tried to get help from the friendssmash but its complicated … they are not showing properly … is there any other scripts that we need to write …there will be … please help me … i am stuck at the end of my game … :"(

With the Facebook SDK for Unity you will need to call the FB.Feed function and give it the good parameters. Just add your score in the linkDescription or in the linkName.

Take a look at this link: FB.Feed Reference

Exemple:

FB.Feed(
    link: "https://example.com/myapp/?storyID=thelarch",
    linkName: "The Larch",
    linkCaption: "I thought up a witty tagline about larches",
    linkDescription: "There are a lot of larch trees around here, aren't there?",
    picture: "https://example.com/myapp/assets/1/larch.jpg",
    callback: LogCallback
);

void LogCallback(FBResult response) {
    Debug.Log(response.Text);
}

Actually in the fb.Init() i removed the OnHideUnity and it works … in OnHideUnity game get pause before sharing … strange … Thanks for all of you for help … :slight_smile: