facebook projects for Almentor.net internship
the perpose of project to collect Facebookk Data (Comments, Reactions, Shares, etc..) to figure the customers interactions on our product the nsuggest improvement based on interactions on the posts and ads
the full project designed in 4 steps
1- Graph API exploler
2- Facebook Access token
3- Gathering data (permission problem)
4- code
1- first step to use facebook API is to sign up as devloper at Facebook for Devlopers
2- then create your first app to get your access token
3- after that go to Graph API exploler to get access token and collect the data
the access token is limited for 1h but you can expand access token or get lifelong access token
open Grahp API exploler
press on generate access token and continue with your FB account
the access token tool will generate user access token
you can create page access token for your FB pages from {user or bage} droplist
this access token is limited for 1h You can edit permessionb from permession menu
to get lifelong access token open My Apps page from main bar in FB devlopers page or visit the page from Here
choose your app
then frmo teh menu on left select Settings droplist then choose Basic
in the new page copy App ID and App Secret
the lifelong access token is "App ID" + "|" + "App Secret "
this token have basic permession to edit it edit the app permession by publishing the app
to gather data we can user
in graph exploler we just send GET request wuth id and the data required in comma seprated after field parameter
we can replace me with the user_id or page_id
we can return multiple nisted parameters using *** {} *** after the data requested
like poste{message, id, comments, reactions}
this return post [message, id, comments, reactions ] for every post returned
we can use facebook API SDK using python to collect this data programmatically this section in repo:
programmatically we can get the data in many format, we can get data with connections or fields as easiest to operate with our project this section in repo: