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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"> | |
<head> | |
<meta property="og:type" content="game.achievement"/> | |
<meta property="og:url" content="http://www.whackwars.com/Achievements/SharedVideo.html"/> | |
<meta property="og:title" content="Selfie Time!!!"/> | |
<meta property="og:description" content="I've just shared a replay of a game on Everyplay. Come join me on Whack Wars!"/> | |
<meta property="og:image" content="http://www.whackwars.com/Achievements/SharedVideo.png"/> | |
<meta property="game:points" content="10"/> | |
<meta property="fb:app_id" content="340125262825946"/> | |
</head> |
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
<body> | |
<script type="text/javascript"> | |
window.location.href = "https://apps.facebook.com/whackwars/" | |
</script> | |
</body> |
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}}; |
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
{ | |
"app_id":660672357301163, | |
"type":"\"flappyadventures:life\"", | |
"url":"\"http:\/\/samples.ogp.me\/660679600633772\"", | |
"title":"\"Sample Life\"", | |
"image":"\"https:\/\/fbstatic-a.akamaihd.net\/images\/devsite\/attachment_blank.png\"", | |
"description":"\"\"" | |
} |
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
{ | |
"app_id":660672357301163, | |
"type":"flappyadventures:life", | |
"url":"http:\/\/samples.ogp.me\/660679600633772", | |
"title":"Sample Life", | |
"image":"https:\/\/fbstatic-a.akamaihd.net\/images\/devsite\/attachment_blank.png", | |
"description":"" | |
} |
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
{ | |
"app_id":660672357301163, | |
"type":"flappyadventures:life", | |
"url":"https:\/\/apps.facebook.com\/flappyadventures", | |
"title":"Life", | |
"image":"https:\/\/www.flappygame.com\/breakinglab\/images\/Ask.png", | |
"description":"Use this life to play another time!" | |
} |
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
FB.AppRequest ("Here, take this life!", // A message for the user | |
OGActionType.Send, // Can be .Send or .AskFor depending on what you want to do with the object. | |
123456789, // Here we put the object id we got as a result before. | |
1274443221, // The id of the sender. | |
"", // Here you can put in any data you want | |
"Send a life to your friend", // A title | |
callback); |