SlideShare a Scribd company logo
1 of 7
Download to read offline
1 | P a g e
Statistical Analysis of Personal Facebook
Account Details using R
Study Report
01st
October 2015
Sanjaya Ratnayake
sanjurat@yahoo.com
+94 77 2841457
2 | P a g e
1. Introduction
Facebook is an online social networking service and allows a person (at least 13 years old)
in interested in Facebook to become a registered user of this website. Today, Facebook is
the world's largest social network, with more than 1 billion users worldwide.
There are already lots of other ways to communicate online, such as email, instant
messaging, and so on. But still many people like using Facebook. What makes Facebook
unique is the ability to connect and share with the people you care about at the same time.
Today, having a Facebook account is now an expected part of being online, much like having
your own email address. And since Facebook is so popular, other websites are interested in
integrating Facebook to their web sites. This means you can use a single Facebook account
to sign in to different services across the Web.
This site is available in 37 different languages, includes public features such as:
 Marketplace - allows members to post, read and respond to classified ads.
 Groups - allows members who have common interests to find each other and
interact.
 Events - allows members to publicize an event, invite guests and track who plans to
attend.
 Pages - allows members to create and promote a public page built around a specific
topic.
 Presence technology - allows members to see which contacts are online and chat.
2. Methodology
The steps are as follows:
Step 1: installing required libraries to R environment
Step 2: Generating Token Key from Facebook
Step 3: Retrieving Information from Facebook
Step 4: Advance Graphical Representation of results
3. Configuration of R Libraries
Initially it is required to install six libraries. They are,
RFacebook
httpuv
RColorBrewer
RCurl
rjson
httr
3 | P a g e
For that below code can be used.
Now the required libraries can be imported.
For that below code can be used.
4. Configuration of Facebook
Login to Facebook and navigate to: developers.facebook.com
Go to “Tools and Support” section and navigate to “Graphic API Explorer”.
From the “Graphic API Explorer” Click “Get Token” and select “Get User Access Token”.
4 | P a g e
Then select all permissions, under “User Data Permission” and “Extended Permission” and
click “Get Access Token”.
5 | P a g e
5. Connecting to Facebook using R
Copy the token key and assign that to a variable in R. In R, it is possible to use below code.
I have assign it to a variable call “tkn”.
6. Retrieving the user details
In order to obtain the user details, getUser() function can be used.
Below code can use. The Token variable need to use as a parameter for it.
7. Retrieving the friends details
For that getFriends() function can be used. The getFriends() return values have assigned to
a variable call myfrds and converted it to a string.
6 | P a g e
8. Retrieving the friends relationship status
For that friend object (in this case myfrds) is required to use relationship_status attribute.
The data are shown in Pie chart and for that pie() function was used.
9. Retrieving the friends locations
For that friend object (in this case myfrds) it is required to user location attribute. The data
are shown in Pie chart and for that pie() function was used as previous.
7 | P a g e
10. Retrieving the friends Gender details
For that friend object (in this case myfrds) it is required to user gender attribute. The data
are shown in Pie chart and for that pie() function was used as previous.

More Related Content

What's hot

Social Media Optimization With Open Graph Tags
Social Media Optimization With Open Graph TagsSocial Media Optimization With Open Graph Tags
Social Media Optimization With Open Graph TagsUmut IŞIK
 
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2Weiai Wayne Xu
 
Talent42 2014 matt grove finding contact info
Talent42 2014 matt grove finding contact infoTalent42 2014 matt grove finding contact info
Talent42 2014 matt grove finding contact infoTalent42
 
Vlorahoti assignment
Vlorahoti assignmentVlorahoti assignment
Vlorahoti assignmentvlorahoti
 
News-gathering and Monitoring | by: Menna El-hosary
News-gathering and Monitoring | by: Menna El-hosaryNews-gathering and Monitoring | by: Menna El-hosary
News-gathering and Monitoring | by: Menna El-hosaryMenna El-hosary
 
Facebook privacy
Facebook privacyFacebook privacy
Facebook privacyaibad ahmed
 
Blitzucsddataminingclassv2 140512200346-phpapp01
Blitzucsddataminingclassv2 140512200346-phpapp01Blitzucsddataminingclassv2 140512200346-phpapp01
Blitzucsddataminingclassv2 140512200346-phpapp01BlitzMetrics
 

What's hot (8)

Social Media Optimization With Open Graph Tags
Social Media Optimization With Open Graph TagsSocial Media Optimization With Open Graph Tags
Social Media Optimization With Open Graph Tags
 
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
 
Talent42 2014 matt grove finding contact info
Talent42 2014 matt grove finding contact infoTalent42 2014 matt grove finding contact info
Talent42 2014 matt grove finding contact info
 
Vlorahoti assignment
Vlorahoti assignmentVlorahoti assignment
Vlorahoti assignment
 
Il 01-search engines
Il 01-search enginesIl 01-search engines
Il 01-search engines
 
News-gathering and Monitoring | by: Menna El-hosary
News-gathering and Monitoring | by: Menna El-hosaryNews-gathering and Monitoring | by: Menna El-hosary
News-gathering and Monitoring | by: Menna El-hosary
 
Facebook privacy
Facebook privacyFacebook privacy
Facebook privacy
 
Blitzucsddataminingclassv2 140512200346-phpapp01
Blitzucsddataminingclassv2 140512200346-phpapp01Blitzucsddataminingclassv2 140512200346-phpapp01
Blitzucsddataminingclassv2 140512200346-phpapp01
 

Viewers also liked

Social Network Analysis With R
Social Network Analysis With RSocial Network Analysis With R
Social Network Analysis With RDavid Chiu
 
Complex and Social Network Analysis in Python
Complex and Social Network Analysis in PythonComplex and Social Network Analysis in Python
Complex and Social Network Analysis in Pythonrik0
 
Social Network Analysis Using Gephi
Social Network Analysis Using Gephi Social Network Analysis Using Gephi
Social Network Analysis Using Gephi Goa App
 
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...Digital Methods Initiative
 
Facebook Brand Analysis 1
Facebook Brand  Analysis 1Facebook Brand  Analysis 1
Facebook Brand Analysis 1Sara Sararyman
 
Text Analysis of Social Networks: Working with FB and VK Data
Text Analysis of Social Networks: Working with FB and VK DataText Analysis of Social Networks: Working with FB and VK Data
Text Analysis of Social Networks: Working with FB and VK DataAlexander Panchenko
 
Sentiment Analysis via R Programming
Sentiment Analysis via R ProgrammingSentiment Analysis via R Programming
Sentiment Analysis via R ProgrammingSkillspeed
 
Firm Strategy Analysis - Facebook
Firm Strategy Analysis - FacebookFirm Strategy Analysis - Facebook
Firm Strategy Analysis - FacebookManan Kakkar
 
Facebook Brand Analysis - Strategic Brand Management
Facebook Brand Analysis - Strategic Brand ManagementFacebook Brand Analysis - Strategic Brand Management
Facebook Brand Analysis - Strategic Brand ManagementNuwan Ireshinie
 
102 e-business model - 20 cases - v6.8 - update 9 jan 2014
102   e-business model - 20 cases - v6.8 - update 9 jan 2014102   e-business model - 20 cases - v6.8 - update 9 jan 2014
102 e-business model - 20 cases - v6.8 - update 9 jan 2014Dao Hoa
 
NetworkX - python graph analysis and visualization @ PyHug
NetworkX - python graph analysis and visualization @ PyHugNetworkX - python graph analysis and visualization @ PyHug
NetworkX - python graph analysis and visualization @ PyHugJimmy Lai
 
Gephi Tutorial Visualization
Gephi Tutorial VisualizationGephi Tutorial Visualization
Gephi Tutorial VisualizationGephi Consortium
 
Facebook Competitive Advantage (social networking)
Facebook Competitive Advantage (social networking)Facebook Competitive Advantage (social networking)
Facebook Competitive Advantage (social networking)Akash Senapaty
 
How Sentiment Analysis works
How Sentiment Analysis worksHow Sentiment Analysis works
How Sentiment Analysis worksCJ Jenkins
 
PPT Presentation on Facebook.com
PPT Presentation on Facebook.comPPT Presentation on Facebook.com
PPT Presentation on Facebook.comKrishan Majumder
 
Advantages and Disadvantages of Facebook
Advantages and Disadvantages of FacebookAdvantages and Disadvantages of Facebook
Advantages and Disadvantages of Facebookchintanchheda
 
Facebook Network Analysis using Gephi
Facebook Network Analysis using GephiFacebook Network Analysis using Gephi
Facebook Network Analysis using GephiSarah Joy Murray
 

Viewers also liked (20)

Social Network Analysis With R
Social Network Analysis With RSocial Network Analysis With R
Social Network Analysis With R
 
Complex and Social Network Analysis in Python
Complex and Social Network Analysis in PythonComplex and Social Network Analysis in Python
Complex and Social Network Analysis in Python
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
Social Network Analysis Using Gephi
Social Network Analysis Using Gephi Social Network Analysis Using Gephi
Social Network Analysis Using Gephi
 
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...
Studying Facebook via Data Extraction: a Netvizz tutorial at the Digital Meth...
 
Facebook Brand Analysis 1
Facebook Brand  Analysis 1Facebook Brand  Analysis 1
Facebook Brand Analysis 1
 
Text Analysis of Social Networks: Working with FB and VK Data
Text Analysis of Social Networks: Working with FB and VK DataText Analysis of Social Networks: Working with FB and VK Data
Text Analysis of Social Networks: Working with FB and VK Data
 
Sentiment Analysis via R Programming
Sentiment Analysis via R ProgrammingSentiment Analysis via R Programming
Sentiment Analysis via R Programming
 
Firm Strategy Analysis - Facebook
Firm Strategy Analysis - FacebookFirm Strategy Analysis - Facebook
Firm Strategy Analysis - Facebook
 
Facebook Brand Analysis - Strategic Brand Management
Facebook Brand Analysis - Strategic Brand ManagementFacebook Brand Analysis - Strategic Brand Management
Facebook Brand Analysis - Strategic Brand Management
 
102 e-business model - 20 cases - v6.8 - update 9 jan 2014
102   e-business model - 20 cases - v6.8 - update 9 jan 2014102   e-business model - 20 cases - v6.8 - update 9 jan 2014
102 e-business model - 20 cases - v6.8 - update 9 jan 2014
 
NetworkX - python graph analysis and visualization @ PyHug
NetworkX - python graph analysis and visualization @ PyHugNetworkX - python graph analysis and visualization @ PyHug
NetworkX - python graph analysis and visualization @ PyHug
 
Gephi Tutorial Visualization
Gephi Tutorial VisualizationGephi Tutorial Visualization
Gephi Tutorial Visualization
 
SPARQL Cheat Sheet
SPARQL Cheat SheetSPARQL Cheat Sheet
SPARQL Cheat Sheet
 
Facebook Competitive Advantage (social networking)
Facebook Competitive Advantage (social networking)Facebook Competitive Advantage (social networking)
Facebook Competitive Advantage (social networking)
 
Gephi Quick Start
Gephi Quick StartGephi Quick Start
Gephi Quick Start
 
How Sentiment Analysis works
How Sentiment Analysis worksHow Sentiment Analysis works
How Sentiment Analysis works
 
PPT Presentation on Facebook.com
PPT Presentation on Facebook.comPPT Presentation on Facebook.com
PPT Presentation on Facebook.com
 
Advantages and Disadvantages of Facebook
Advantages and Disadvantages of FacebookAdvantages and Disadvantages of Facebook
Advantages and Disadvantages of Facebook
 
Facebook Network Analysis using Gephi
Facebook Network Analysis using GephiFacebook Network Analysis using Gephi
Facebook Network Analysis using Gephi
 

Similar to Statistical analysis of facebook using r

SocialOverlay : P2P Infrastructure for social Networks
SocialOverlay : P2P Infrastructure for social NetworksSocialOverlay : P2P Infrastructure for social Networks
SocialOverlay : P2P Infrastructure for social NetworksBipin
 
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...Nicola Osborne
 
Apprehension of Youth towards Social Networking Sites: Two Sides of a Coin
Apprehension of Youth towards Social Networking Sites: Two Sides of a CoinApprehension of Youth towards Social Networking Sites: Two Sides of a Coin
Apprehension of Youth towards Social Networking Sites: Two Sides of a CoinIJERA Editor
 
Goodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social UpdateGoodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social UpdatePatrick Chanezon
 
Implementing Semantic Queries in Online Social Networks
Implementing Semantic Queries in Online Social NetworksImplementing Semantic Queries in Online Social Networks
Implementing Semantic Queries in Online Social NetworksOtávio Calaça Xavier
 
GSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For BusinessGSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For BusinessPatrick Chanezon
 
MGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxMGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxstirlingvwriters
 
2023 Guide How To Scrape Social Media Data Using Python (1).pptx
2023 Guide How To Scrape Social Media Data Using Python (1).pptx2023 Guide How To Scrape Social Media Data Using Python (1).pptx
2023 Guide How To Scrape Social Media Data Using Python (1).pptxiwebdatascraping
 
OpenSocial Vs Facebook
OpenSocial Vs FacebookOpenSocial Vs Facebook
OpenSocial Vs FacebookPravin Nirmal
 
Lubos palcomaio2010
Lubos palcomaio2010Lubos palcomaio2010
Lubos palcomaio2010alipiojorge
 
A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx
 A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx
A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docxjoyjonna282
 
GSoC 2017 Proposal - Chatbot for DBpedia
GSoC 2017 Proposal - Chatbot for DBpedia GSoC 2017 Proposal - Chatbot for DBpedia
GSoC 2017 Proposal - Chatbot for DBpedia Ram G Athreya
 
Most effective Social Media Platform today
Most effective Social Media Platform today Most effective Social Media Platform today
Most effective Social Media Platform today rajjoshi78
 
IRJET- Fake Profile Identification using Machine Learning
IRJET-  	  Fake Profile Identification using Machine LearningIRJET-  	  Fake Profile Identification using Machine Learning
IRJET- Fake Profile Identification using Machine LearningIRJET Journal
 
Python report on twitter sentiment analysis
Python report on twitter sentiment analysisPython report on twitter sentiment analysis
Python report on twitter sentiment analysisAntaraBhattacharya12
 

Similar to Statistical analysis of facebook using r (20)

SocialOverlay : P2P Infrastructure for social Networks
SocialOverlay : P2P Infrastructure for social NetworksSocialOverlay : P2P Infrastructure for social Networks
SocialOverlay : P2P Infrastructure for social Networks
 
Cataloguing your friends and neighbours
Cataloguing your friends and neighboursCataloguing your friends and neighbours
Cataloguing your friends and neighbours
 
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...
Cataloguing Your Friends and Neighbours: Personal Metadata and the Opportunit...
 
An Improved People-Search Technique for Directed Social Network Graphs
An Improved People-Search Technique for Directed Social Network GraphsAn Improved People-Search Technique for Directed Social Network Graphs
An Improved People-Search Technique for Directed Social Network Graphs
 
Apprehension of Youth towards Social Networking Sites: Two Sides of a Coin
Apprehension of Youth towards Social Networking Sites: Two Sides of a CoinApprehension of Youth towards Social Networking Sites: Two Sides of a Coin
Apprehension of Youth towards Social Networking Sites: Two Sides of a Coin
 
Goodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social UpdateGoodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social Update
 
Implementing Semantic Queries in Online Social Networks
Implementing Semantic Queries in Online Social NetworksImplementing Semantic Queries in Online Social Networks
Implementing Semantic Queries in Online Social Networks
 
Proposal.docx
Proposal.docxProposal.docx
Proposal.docx
 
Facebot
FacebotFacebot
Facebot
 
GSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For BusinessGSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For Business
 
MGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxMGT5419 User Experience Design.docx
MGT5419 User Experience Design.docx
 
2023 Guide How To Scrape Social Media Data Using Python (1).pptx
2023 Guide How To Scrape Social Media Data Using Python (1).pptx2023 Guide How To Scrape Social Media Data Using Python (1).pptx
2023 Guide How To Scrape Social Media Data Using Python (1).pptx
 
OpenSocial Vs Facebook
OpenSocial Vs FacebookOpenSocial Vs Facebook
OpenSocial Vs Facebook
 
Lubos palcomaio2010
Lubos palcomaio2010Lubos palcomaio2010
Lubos palcomaio2010
 
A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx
 A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx
A4.1Proceedings of Student-Faculty Research Day, CSIS, Pa.docx
 
GSoC 2017 Proposal - Chatbot for DBpedia
GSoC 2017 Proposal - Chatbot for DBpedia GSoC 2017 Proposal - Chatbot for DBpedia
GSoC 2017 Proposal - Chatbot for DBpedia
 
Most effective Social Media Platform today
Most effective Social Media Platform today Most effective Social Media Platform today
Most effective Social Media Platform today
 
IRJET- Fake Profile Identification using Machine Learning
IRJET-  	  Fake Profile Identification using Machine LearningIRJET-  	  Fake Profile Identification using Machine Learning
IRJET- Fake Profile Identification using Machine Learning
 
Python report on twitter sentiment analysis
Python report on twitter sentiment analysisPython report on twitter sentiment analysis
Python report on twitter sentiment analysis
 
Introducing Facebook
Introducing FacebookIntroducing Facebook
Introducing Facebook
 

More from Pixel Clear (Pvt) Ltd

Downscaling global climate model outputs to fine scales sanjaya ratnayake
Downscaling global climate model outputs to fine scales   sanjaya ratnayakeDownscaling global climate model outputs to fine scales   sanjaya ratnayake
Downscaling global climate model outputs to fine scales sanjaya ratnayakePixel Clear (Pvt) Ltd
 
Practices of Downscaling Methods for Water Resources Management in Sri Lanka
Practices of Downscaling  Methods for Water Resources  Management in Sri LankaPractices of Downscaling  Methods for Water Resources  Management in Sri Lanka
Practices of Downscaling Methods for Water Resources Management in Sri LankaPixel Clear (Pvt) Ltd
 
Downscaling global climate model outputs to fine scales over sri lanka for as...
Downscaling global climate model outputs to fine scales over sri lanka for as...Downscaling global climate model outputs to fine scales over sri lanka for as...
Downscaling global climate model outputs to fine scales over sri lanka for as...Pixel Clear (Pvt) Ltd
 
Ceylon Electricity Board : Data Base Management System
Ceylon Electricity Board : Data Base Management SystemCeylon Electricity Board : Data Base Management System
Ceylon Electricity Board : Data Base Management SystemPixel Clear (Pvt) Ltd
 
A swarm of agents for a sustainable environment
A swarm of agents for a sustainable environmentA swarm of agents for a sustainable environment
A swarm of agents for a sustainable environmentPixel Clear (Pvt) Ltd
 
Empowering women and children through the usage of ict[1]
Empowering women and children through the usage of ict[1]Empowering women and children through the usage of ict[1]
Empowering women and children through the usage of ict[1]Pixel Clear (Pvt) Ltd
 
Sas en – a swarm of agents for a sustainble environnent
Sas en – a swarm of agents for a sustainble environnentSas en – a swarm of agents for a sustainble environnent
Sas en – a swarm of agents for a sustainble environnentPixel Clear (Pvt) Ltd
 
Iseced presentation at young enterprinue challenge organized by british vounc...
Iseced presentation at young enterprinue challenge organized by british vounc...Iseced presentation at young enterprinue challenge organized by british vounc...
Iseced presentation at young enterprinue challenge organized by british vounc...Pixel Clear (Pvt) Ltd
 
Integrated system for early childhood development
Integrated system for early childhood developmentIntegrated system for early childhood development
Integrated system for early childhood developmentPixel Clear (Pvt) Ltd
 
Develop statistical model to predict extreme precipitation through
Develop statistical model to predict extreme precipitation throughDevelop statistical model to predict extreme precipitation through
Develop statistical model to predict extreme precipitation throughPixel Clear (Pvt) Ltd
 

More from Pixel Clear (Pvt) Ltd (14)

Downscaling global climate model outputs to fine scales sanjaya ratnayake
Downscaling global climate model outputs to fine scales   sanjaya ratnayakeDownscaling global climate model outputs to fine scales   sanjaya ratnayake
Downscaling global climate model outputs to fine scales sanjaya ratnayake
 
Practices of Downscaling Methods for Water Resources Management in Sri Lanka
Practices of Downscaling  Methods for Water Resources  Management in Sri LankaPractices of Downscaling  Methods for Water Resources  Management in Sri Lanka
Practices of Downscaling Methods for Water Resources Management in Sri Lanka
 
Downscaling global climate model outputs to fine scales over sri lanka for as...
Downscaling global climate model outputs to fine scales over sri lanka for as...Downscaling global climate model outputs to fine scales over sri lanka for as...
Downscaling global climate model outputs to fine scales over sri lanka for as...
 
Portfolio: Sanetra Solutions
Portfolio: Sanetra SolutionsPortfolio: Sanetra Solutions
Portfolio: Sanetra Solutions
 
Snetra solutions
Snetra solutionsSnetra solutions
Snetra solutions
 
Ceylon Electricity Board : Data Base Management System
Ceylon Electricity Board : Data Base Management SystemCeylon Electricity Board : Data Base Management System
Ceylon Electricity Board : Data Base Management System
 
A swarm of agents for a sustainable environment
A swarm of agents for a sustainable environmentA swarm of agents for a sustainable environment
A swarm of agents for a sustainable environment
 
Transcript
TranscriptTranscript
Transcript
 
I report userguide
I report userguideI report userguide
I report userguide
 
Empowering women and children through the usage of ict[1]
Empowering women and children through the usage of ict[1]Empowering women and children through the usage of ict[1]
Empowering women and children through the usage of ict[1]
 
Sas en – a swarm of agents for a sustainble environnent
Sas en – a swarm of agents for a sustainble environnentSas en – a swarm of agents for a sustainble environnent
Sas en – a swarm of agents for a sustainble environnent
 
Iseced presentation at young enterprinue challenge organized by british vounc...
Iseced presentation at young enterprinue challenge organized by british vounc...Iseced presentation at young enterprinue challenge organized by british vounc...
Iseced presentation at young enterprinue challenge organized by british vounc...
 
Integrated system for early childhood development
Integrated system for early childhood developmentIntegrated system for early childhood development
Integrated system for early childhood development
 
Develop statistical model to predict extreme precipitation through
Develop statistical model to predict extreme precipitation throughDevelop statistical model to predict extreme precipitation through
Develop statistical model to predict extreme precipitation through
 

Recently uploaded

Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样wsppdmt
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........EfruzAsilolu
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.pptibrahimabdi22
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATIONCapstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATIONLakpaYanziSherpa
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjurptikerjasaptiker
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样wsppdmt
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxVivek487417
 

Recently uploaded (20)

Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATIONCapstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
 
Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 

Statistical analysis of facebook using r

  • 1. 1 | P a g e Statistical Analysis of Personal Facebook Account Details using R Study Report 01st October 2015 Sanjaya Ratnayake sanjurat@yahoo.com +94 77 2841457
  • 2. 2 | P a g e 1. Introduction Facebook is an online social networking service and allows a person (at least 13 years old) in interested in Facebook to become a registered user of this website. Today, Facebook is the world's largest social network, with more than 1 billion users worldwide. There are already lots of other ways to communicate online, such as email, instant messaging, and so on. But still many people like using Facebook. What makes Facebook unique is the ability to connect and share with the people you care about at the same time. Today, having a Facebook account is now an expected part of being online, much like having your own email address. And since Facebook is so popular, other websites are interested in integrating Facebook to their web sites. This means you can use a single Facebook account to sign in to different services across the Web. This site is available in 37 different languages, includes public features such as:  Marketplace - allows members to post, read and respond to classified ads.  Groups - allows members who have common interests to find each other and interact.  Events - allows members to publicize an event, invite guests and track who plans to attend.  Pages - allows members to create and promote a public page built around a specific topic.  Presence technology - allows members to see which contacts are online and chat. 2. Methodology The steps are as follows: Step 1: installing required libraries to R environment Step 2: Generating Token Key from Facebook Step 3: Retrieving Information from Facebook Step 4: Advance Graphical Representation of results 3. Configuration of R Libraries Initially it is required to install six libraries. They are, RFacebook httpuv RColorBrewer RCurl rjson httr
  • 3. 3 | P a g e For that below code can be used. Now the required libraries can be imported. For that below code can be used. 4. Configuration of Facebook Login to Facebook and navigate to: developers.facebook.com Go to “Tools and Support” section and navigate to “Graphic API Explorer”. From the “Graphic API Explorer” Click “Get Token” and select “Get User Access Token”.
  • 4. 4 | P a g e Then select all permissions, under “User Data Permission” and “Extended Permission” and click “Get Access Token”.
  • 5. 5 | P a g e 5. Connecting to Facebook using R Copy the token key and assign that to a variable in R. In R, it is possible to use below code. I have assign it to a variable call “tkn”. 6. Retrieving the user details In order to obtain the user details, getUser() function can be used. Below code can use. The Token variable need to use as a parameter for it. 7. Retrieving the friends details For that getFriends() function can be used. The getFriends() return values have assigned to a variable call myfrds and converted it to a string.
  • 6. 6 | P a g e 8. Retrieving the friends relationship status For that friend object (in this case myfrds) is required to use relationship_status attribute. The data are shown in Pie chart and for that pie() function was used. 9. Retrieving the friends locations For that friend object (in this case myfrds) it is required to user location attribute. The data are shown in Pie chart and for that pie() function was used as previous.
  • 7. 7 | P a g e 10. Retrieving the friends Gender details For that friend object (in this case myfrds) it is required to user gender attribute. The data are shown in Pie chart and for that pie() function was used as previous.