Last active
August 29, 2015 14:01
-
-
Save gclaret/35755b3d0507a3f696b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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