官术网_书友最值得收藏!

  • Python Social Media Analytics
  • Siddhartha Chatterjee Michal Krystyanczuk
  • 174字
  • 2021-07-15 17:24:57

Creating an app and getting an access token

We show the following procedure to get access tokens that never expire.

  1. Go to the website: https://developers.facebook.com/apps/.
  2. Create an application.
  3. Go to https://developers.facebook.com/tools/explorer.
  4. Select your application from the Graph API Explorer drop-down menu.
  5. Click on the Get Access Token button.
  6. Select permissions from the form.
  7. In the Access token input field click on the blue exclamation point icon. It will open a pop-up window.
  8. In the pop-up window, click on Open in Access Token Tool. You will see token details. At this stage the token is valid for around one hour.
  9. Click on the Extend Access Token button to get a token that will never expire.

You can save the token and use it in your application to collect data from Facebook. It is worth noticing that you will only have access to public information on Facebook. Your application has to have the right to access the data you wish to collect. In our case it is straightforward, because we will analyze public conversation around brands.

主站蜘蛛池模板: 交城县| 湛江市| 玛曲县| 荃湾区| 栾川县| 临夏市| 九台市| 营口市| 当雄县| 繁峙县| 图们市| 始兴县| 肇庆市| 陆河县| 云安县| 分宜县| 贵港市| 大英县| 宣威市| 永城市| 长垣县| 岑溪市| 温州市| 太和县| 农安县| 甘洛县| 盐池县| 那坡县| 固阳县| 潞西市| 江津市| 滨海县| 屏东市| 临桂县| 沧源| 隆林| 吉首市| 东丽区| 蕉岭县| 渭南市| 师宗县|