- 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.
- Go to the website: https://developers.facebook.com/apps/.
- Create an application.
- Go to https://developers.facebook.com/tools/explorer.
- Select your application from the Graph API Explorer drop-down menu.
- Click on the Get Access Token button.
- Select permissions from the form.
- In the Access token input field click on the blue exclamation point icon. It will open a pop-up window.
- 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.
- 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.
推薦閱讀
- 程序員面試白皮書
- ThinkPHP 5實(shí)戰(zhàn)
- OpenShift開發(fā)指南(原書第2版)
- Objective-C應(yīng)用開發(fā)全程實(shí)錄
- Vue.js 3.x從入門到精通(視頻教學(xué)版)
- Getting Started with CreateJS
- Object-Oriented JavaScript(Second Edition)
- Easy Web Development with WaveMaker
- STM32F0實(shí)戰(zhàn):基于HAL庫開發(fā)
- Python編程:從入門到實(shí)踐
- Python機(jī)器學(xué)習(xí)基礎(chǔ)教程
- C++新經(jīng)典
- Learning Laravel's Eloquent
- 軟件項(xiàng)目管理實(shí)用教程
- 開源項(xiàng)目成功之道