> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Likes

> standard v1.1 POST favorites/create と POST favorites/destroy を利用してきた方向けのガイドです。migrate を扱う X API v2 スタンダードティアのリファレンス。

### Manage Likes: Standard v1.1 と X API v2 の比較

standard v1.1 の [POST favorites/create](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-create) と [POST favorites/destroy](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy) エンドポイントを利用してきた方向けに、本ガイドは standard v1.1 と X API v2 の manage Likes エンドポイント間の類似点と相違点の理解を助けることを目的としています。

* **類似点**
  * OAuth 1.0a User Context
* **相違点**
  * エンドポイント URL と HTTP メソッド
  * App と Project の要件
  * リクエストパラメーター

#### 類似点

**OAuth 1.0a User Context 認証方式**

両エンドポイントは [OAuth 1.0a User Context](/resources/fundamentals/authentication#oauth-1-0a-2) をサポートします。したがって、これまで standard v1.1 の manage favorites エンドポイントを使用していた場合、X API v2 版に移行しても同じ認証方式を引き続き使用できます。

#### 相違点

**エンドポイント URL と HTTP メソッド**

* Standard v1.1 エンドポイント:
  * POST [https://api.x.com/1.1/favorites/create.json](https://api.x.com/1.1/favorites/create.json)
    (投稿にいいねを付ける)
  * POST [https://api.x.com/1.1/favorites/destroy.json](https://api.x.com/1.1/favorites/destroy.json)
    (投稿のいいねを外す)
* X API v2 エンドポイント:
  * POST [https://api.x.com/2/tweets/:id/likes](https://api.x.com/2/tweets/:id/likes)
    (投稿にいいねを付ける)
  * DELETE [https://api.x.com/2/tweets/:id/likes/:tweet\_id](https://api.x.com/2/tweets/:id/likes/:tweet_id)
    (投稿のいいねを外す)

**App と Project の要件**

X API v2 エンドポイントでは、リクエストの認証に [Project](/resources/fundamentals/developer-apps) に紐づく[開発者 App](/resources/fundamentals/developer-apps) の認証情報を使用する必要があります。すべての X API v1.1 エンドポイントは、App または App に紐づく App の認証情報を使用
