Collect Public Facebook Data by User ID
Channel: LBSocial
Date: 2017-11-01

Use Facebook Graph API to collect Facebook data based on User ID and save the data into MongoDB. You need to registrar a Facebook API from https://developers.facebook.com/ to get your Access Token.
The python code: https://github.com/xbwei/Data-Mining-on-Social-Media/blob/master/Facebook/GetFacebookFeedByUser.py
The provided python code only allows you to collect public Facebook users' data based on their Facebook IDs. If you want to collect private or personal Facebook data, you need users' permission to do so. Please check https://developers.facebook.com/docs/facebook-login/access-tokens/ for more information.