Twitter フォロワー API の作成

WP Social is a WordPress social plugin that allows you to share Twitter counters to your WP website in minutes. You need to generate Twitter Followers API to integrate the Twitter counter to your website. In this documentation, you will learn the complete process of creating Twitter followers API.

How to generate Twitter followers API #

With WP Social, you can generate Twitter followers API by following only five steps. Here are the steps that you need to follow to access Twitter followers API:

Step 1: Enable Twitter for counter settings. #

First, you have to enable Twitter from WP Social Counter Settings. To enable it, navigate to Social Counter >> Providers そして トグルボタンをオンにする。 それから、 press the “Settings” button to access the tab for counter settings.

Enable Twitter for Twitter followers api creation

pressing the “Settings” button a tab will open up from where you need to enter the username of your Twitter handle and press the “Get Access Token” ボタン。

Twitter followers api creation of WP Social

Step 2: Create Twitter App. #

In the second step, you need to create an account on Twitter app. For that, visit ➡️ https://developer.twitter.com/en/apps そして press the “Apply” タブ。

Create account on Twitter app for Twitter followers api creation

After opening a Developer Portal, you need to sign up for free account. これに従ってください WP Social Twitter app creation 博士 for more detailed guide.

WP Social Twitter followers api creation

Step 3: Generate API key and secret key. #

Next to opening a twitter app account, you can access Developer Portal to generate API key and secret key。今、 click the Projects and Apps tab to open the drop-and-down menu.

Generate API key and secret key for twitter followers api creation

その後、 click on the default project created under the Projects and Apps tab. Then, click the “Keys and tokens” tab そして hit the “Regenerate” button to generate API Key and Secret Key.

Regenerate API key and secret key for Twitter follower api using WP Social

After clicking the “Regenerate” button, another tab will pop up. Here you need to press “Yes, regenerate” to create API Key and Secret Key.

Regenerate API key

Now, your API Key and API Key Secret will be right in front of your eyes. Copy these keys to complete the WP Social Counter Settings.

Copy AP key and secret key for WP Social counter settings

Step 4: Enter consumer key and secret key. #

このステップでは、 paste API Key and API Key Secret respectively in the Consumer Key and Secret Key fields. After that, hit the “Generate Key” button.

Twitter API generate with WP Social

今、 clear the cache そして 「変更を保存」を押します button. Thus, your WP Social Counter configuration will be completed.

Twitter API creation with WP Social

Step 5: Add Twitter counter to pages and posts with shortcodes. #

あなたはできる add Twitter counter to your any page or post with shortcode. Now navigate to the Counter Settings tab そして copy the first shortcode.

Add Twitter counter to pages and posts with shortcodes using WP Social

その後、 go to any page or post where you want to add twitter counter and use Shortcode block. In that block, ショートコードを貼り付けます そして 「保存」をクリック ボタン。

Add Twitter counter with WP Social's shortcode

Here is the final look at the Twitter counter on the front end:

Twitter counter with WP Social
あなたの気持ちは何ですか
Updated on 11月 26, 2024