Error occurs when I run the sample project for facebook leaderboard

+1 vote

I am trying to integrate facebook leaderboard in my app following the page below.

http://blogs.shephertz.com/2013/09/24/integrat-social-leaderboard-in-unity3d-with-facebook-sd/
 

I think I did what the page says. I registered my app and got two keys.

Then I ran the sample project with the app name and these 2 keys, and I got these 2 errors.

//---------------------

You are trying to load data from a www stream which had the following error when downloading.

400 Bad Request

UnityEngine.WWW:get_text()

<execute>c__Iterator1:MoveNext() (at Assets/Examples/Scripts/AppConstant.cs:103)

<WaitForRequest>c__Iterator0:MoveNext() (at Assets/Examples/Scripts/AppConstant.cs:66)

 

NullReferenceException: Object reference not set to an instance of an object

AppConstant.callBack (System.String response) (at Assets/Examples/Scripts/AppConstant.cs:45)

AppConstant+<execute>c__Iterator1.MoveNext () (at Assets/Examples/Scripts/AppConstant.cs:103)

AppConstant+<WaitForRequest>c__Iterator0.MoveNext () (at Assets/Examples/Scripts/AppConstant.cs:66)

//-----------------------

 

Did I miss anything or do something wrong?

 

One more question.

What I can do is that I save scores of mine or my facebook friends into the storage of facebook,

and I can display those scores on the form that i make. (Facebook does not support any forms about this)

Is it correct?

asked Feb 25, 2014 in App42 Cloud API-BaaS by David Kim (20 points)

1 Answer

0 votes

I think you are trying to run this sample on unity3d editer. And Facebook Unity3d SDK doesn’t  support editor/desktop applications at the moment. You must run this app on apps.facebook.com/. For more information about Unity3D Facebook SDK visit Getting-started with Unity Facebook.  

answered Feb 25, 2014 by sshukla480 (407 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...