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

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.

主站蜘蛛池模板: 古浪县| 溧水县| 阳曲县| 新竹县| 拜泉县| 庆元县| 舞钢市| 临澧县| 阳信县| 东乡族自治县| 天祝| 忻州市| 镇沅| 华宁县| 鹿邑县| 河源市| 洪泽县| 乌什县| 铁力市| 深水埗区| 阿巴嘎旗| 仁化县| 北辰区| 民和| 宁都县| 镇坪县| 康平县| 上饶市| 雷波县| 五峰| 五台县| 长岭县| 抚远县| 沧州市| 宕昌县| 余姚市| 郓城县| 潜山县| 理塘县| 五大连池市| 衡阳市|