Skip to content

Instantly share code, notes, and snippets.

View gist:d84232dfbc7c9868e067
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);
View gist:513b149ccc4eb1e519c3
{
"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!"
}
View gist:6ca9ad4169a8911aaf76
{
"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":""
}
View OG1
{
"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":"\"\""
}
View FacebookAchievements
using System.Collections;
using System.Collections.Generic;
using Facebook;
public class FacebookAchievements
{
void GiveAchievement(string achievementUrl)
{
var data = new Dictionary<string, string> () {{"achievement", achievementUrl}};
View gist:a7da7de8f46feaa6bebb
<body>
<script type="text/javascript">
window.location.href = "https://apps.facebook.com/whackwars/"
</script>
</body>
View AchievementStep1
<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>
You can’t perform that action at this time.