0

I have been able to get my Silverlight App connected to Facebook and get authenticated.

I am trying to pull the users credits balance into my Silverlight app the documentation at developers.facebook.com/docs/creditsapi has a one line example that references the Facebook Credits Sample application from Githu that is writen in php. looking at the file from the Githu example facebookapi_php5_restlib.php and the documentation Converting Facebook PHP examples I should be able to get the balance with something like this.

private void GetBalance()
{    
     var fb = new FacebookClient ( auth.Session.AccessToken );
     dynamic me = fb.Get ( "me" );
     Dictionary<string, object> parms = new Dictionary<string, object> ( );
     parms.Add ( me.id, "credit_balance" );
     fb.GetAsync ("/facebook/users/getInfo", parms, GetResults );
}

private void GetResults ( FacebookAsyncResult asyncResult )
{
}

With this variation I get back an error

asyncResult.error - {"(OAuthException) Unknown path components: /getinfo"}

I have tried diffent variation on the API path but have not been able to get this call to work and am hoping someone will be able to point me in the right direction.

JCPhlux
  • 455
  • 5
  • 9

1 Answers1

0

You need to be on the Facebook credits special incentives scheme for this to work. In order to apply for the scheme you must have a live app that uses credits as its sole currency. You can apply for the scheme here.

el_tone
  • 1,182
  • 8
  • 16
  • So once the app is approved for the incentive program does it look like the above code should work? – JCPhlux Feb 23 '11 at 15:13
  • Looking at the php example in the docs that should work but I can't test it as we don't have an approved app yet. It would have been nice if they had just put it in the same format as all the other graph examples. – el_tone Feb 24 '11 at 09:25