Skip to content

Instantly share code, notes, and snippets.

<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>
@gclaret
gclaret / gist:a7da7de8f46feaa6bebb
Last active August 29, 2015 14:01
AdditionalCode
<body>
<script type="text/javascript">
window.location.href = "https://apps.facebook.com/whackwars/"
</script>
</body>
using System.Collections;
using System.Collections.Generic;
using Facebook;
public class FacebookAchievements
{
void GiveAchievement(string achievementUrl)
{
var data = new Dictionary<string, string> () {{"achievement", achievementUrl}};
{
"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":"\"\""
}
{
"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":""
}
{
"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!"
}
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);