Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Feed Share in Unity

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.15k
    Comment on it

    Hello Readers !!

     

    Today I am going to explain about the Feed Sharing on Facebook with Unity.

    Feed Sharing is the simplest way to implement the Facebook Share with any App. With this feature, you no need to Implement the Facebook Login in the app. You can directly call Share method and can share the links, Score, Story of the app.

    Here is the code for the that:-

    string AppID = "Enter Your App ID";
                string Picture = "link for your app icon";
                string Link = "link for your app on respective store.";
                string Caption = "Story ";
                string Description = "Description of the story";
                string Name = "Name Is required";
    
                Application.OpenURL("https://www.facebook.com/dialog/feed?" + "app_id=" + AppID + "&link=" +
                                    Link + "&picture=" + Picture + "&name=" + ReplaceSpace(Name) + "&caption=" +
                                    ReplaceSpace(Caption) + "&description=" + ReplaceSpace(Description) +
                                    "&redirect_uri=https://facebook.com/"
                                    );
    
    ======================================
    
      string ReplaceSpace(string val)
        {
            return val.Replace(" ", "%20");
        }

     

    Call this function on any button click and share your stories on Facebook. Have fun.

     

    Till then keep coding.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: