This project has moved and is read-only. For the latest updates, please go here.

Creating a Favorite

Favorite a status.
public async Task<Status> CreateFavoriteAsync(
    ulong id)
public async Task<Status> CreateFavoriteAsync(
    ulong id, bool includeEntities)
Name Purpose Type Required
id ID of tweet to add to favorites ulong yes
includeEntities Include Twitter entities (default: true) bool no

Return Type: Status
v3.0 Example:
            var status = await twitterCtx.CreateFavoriteAsync(401033367283453953ul);

            if (status != null)
                    "User: {0}, Tweet: {1}", status.User.Name, status.Text);
v2.1 Example:
            var status = twitterCtx.CreateFavorite("265675496581373952");

                "User: {0}, Tweet: {1}", 
                status.User.Name, status.Text);

Twitter API: favorites/create

Last edited Nov 29, 2013 at 3:39 AM by JoeMayo, version 11