Skip to content

HossamAbdelraof/Facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Facebook

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

Graph API exploler

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

Get Facebook Access Token

1- limited access token (1h)

open Grahp API exploler

image

press on generate access token and continue with your FB account
the access token tool will generate user access token

image

you can create page access token for your FB pages from {user or bage} droplist

image

this access token is limited for 1h You can edit permessionb from permession menu

2- lifelong acccess token

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

image

in the new page copy App ID and App Secret

image

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

Gathering data

to gather data we can user

1- Grapi exploler

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

image

2- Facebook API SDK

we can use facebook API SDK using python to collect this data programmatically this section in repo:

Facebook-Comments-Colelctor-main
Facebook-graph-api-main

code and Data

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:

Facebook-Comments-Colelctor-main
Facebook-graph-api-main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages