Skip to content

Instantly share code, notes, and snippets.

@gclaret
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gclaret/35755b3d0507a3f696b1 to your computer and use it in GitHub Desktop.
Save gclaret/35755b3d0507a3f696b1 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using Facebook;
public class FacebookAchievements
{
void GiveAchievement(string achievementUrl)
{
var data = new Dictionary<string, string> () {{"achievement", achievementUrl}};
FB.API ("/me/achievements",
Facebook.HttpMethod.POST,
AchievementCallback,
data);
}
void AchievementCallback(FBResult result)
{
if (result != null)
{
// Handle result
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment