• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by zico_mahilary · Jun 02, 2012 at 09:10 AM · scorepost

how to post score to facebook

hi, i am working on a simple endless runner to post in wooglie.com. it is almost done... but i want to post the score that the player makes on facebook. can anyone help me with this? and are there any legal issues? thanks..

i have seen this... http://forum.unity3d.com/threads/33898-Unity-Facebook-Project ... but none of the links given here are working.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image whydoidoit · Jun 02, 2012 at 09:12 AM 1
Share

Getting the user permissions and the authorisation process is the most difficult thing. I would use a plugin that covers this for you. Try www.prime31.com.

avatar image zico_mahilary · Jun 02, 2012 at 09:34 AM 0
Share

are there any free or cheaper alternatives designed specifically for the web n not ios devices. this is for totally non commercial use.

avatar image whydoidoit · Jun 02, 2012 at 10:23 AM 0
Share

Not that I know of, but I haven't really looked

avatar image whydoidoit · Jun 02, 2012 at 10:27 AM 1
Share

There's a free twitter one and a FB here:

http://u3d.as/content/young-wook-yang/let-s-tweet-in-unity/1Dq

http://u3d.as/content/social-play/face-book-net-integration/1tT

4 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Fattie · Jun 02, 2012 at 09:38 AM

Just use one of the plugins available in the Asset Store.

it would be total madness to reduplicate this work.

The asset store is your friend!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zico_mahilary · Jun 02, 2012 at 11:25 AM 1
Share

found this

http://u3d.as/content/studio-evil/easy-facebook-integration/2w8

thanks for the advice

avatar image
1

Answer by gamer_boy_81 · Jan 02, 2015 at 11:03 AM

Hi

We've created a step by step tutorial with Prime 31's Social Networking Plugin so that you can add Facebook based scores/leaderboards in your game :

http://2piinteractive.blogspot.in/

Regards

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by rbhambhu · Oct 27, 2014 at 11:41 AM

https://www.assetstore.unity3d.com/en/#!/content/913

This seems better option.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
5

Answer by Geo.Ego · Jul 18, 2014 at 08:01 PM

There's a very simple way to do this without dealing with permissions or plugins. If all you want to do is post a high score and some info, you just need to make a Facebook app then use it to post via URL redirection. I've posted about it here, but the code is thus:

 private const string FACEBOOK_APP_ID = "123456789000";
 private const string FACEBOOK_URL = "http://www.facebook.com/dialog/feed";
  
 void ShareToFacebook (string linkParameter, string nameParameter, string captionParameter, string descriptionParameter, string pictureParameter, string redirectParameter)
 {
 Application.OpenURL (FACEBOOK_URL + "?app_id=" + FACEBOOK_APP_ID +
 "&link=" + WWW.EscapeURL(linkParameter) +
 "&name=" + WWW.EscapeURL(nameParameter) +
 "&caption=" + WWW.EscapeURL(captionParameter) + 
 "&description=" + WWW.EscapeURL(descriptionParameter) + 
 "&picture=" + WWW.EscapeURL(pictureParameter) + 
 "&redirect_uri=" + WWW.EscapeURL(redirectParameter));
 }

There are a few gotchas primarily dealing with the redirect parameter. Basically, if you want to redirect to an outside domain after posting, you need to register a website platform with your app, using the page to link to as the site URL, and then add that page's domain to your app domains. Otherwise, just redirect to "http://www.facebook.com/", as the redirect_uri is required.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How To Keep Score 1 Answer

Add score when object destroys (For Hidden Object Game) 1 Answer

Problem with High Score System using PlayerPrefs [C#] 1 Answer

Score Keeper / Kill Counter Help 1 Answer

my score system doesn't work 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges