C# Class Decision.Common.OpenGraph.ObjectTypes.Facebook.OpenGraphGameAchievement

This object type represents a specific achievement in a game. An app must be in the 'Games' category in App Dashboard to be able to use this object type. Every achievement has a game:points value associate with it. This is not related to the points the user has scored in the game, but is a way for the app to indicate the relative importance and scarcity of different achievements: * Each game gets a total of 1,000 points to distribute across its achievements * Each game gets a maximum of 1,000 achievements * Achievements which are scarcer and have higher point values will receive more distribution in Facebook's social channels. For example, achievements which have point values of less than 10 will get almost no distribution. Apps should aim for between 50-100 achievements consisting of a mix of 50 (difficult), 25 (medium), and 10 (easy) point value achievements Read more on how to use achievements in this guide. This object type is not part of the Open Graph standard but is used by Facebook. See https://developers.facebook.com/docs/reference/opengraph/object-type/game.achievement/
Inheritance: OpenGraphMetadata
Show file Open project: rabbal/Decision

Public Methods

Method Description
OpenGraphGameAchievement ( string title, OpenGraphImage image, int points, string url = null ) : System.Text

Initializes a new instance of the OpenGraphGameAchievement class.

ToString ( StringBuilder stringBuilder ) : void

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Open Graph meta tags.

Method Details

OpenGraphGameAchievement() public method

Initializes a new instance of the OpenGraphGameAchievement class.
public OpenGraphGameAchievement ( string title, OpenGraphImage image, int points, string url = null ) : System.Text
title string The title of the object as it should appear in the graph.
image Decision.Common.OpenGraph.Media.OpenGraphImage The default image.
points int The relative importance and scarcity of the achievement.
url string The canonical URL of the object, used as its ID in the graph.
return System.Text

ToString() public method

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Open Graph meta tags.
public ToString ( StringBuilder stringBuilder ) : void
stringBuilder System.Text.StringBuilder The string builder.
return void