This blog introduces you to the importance of R
Analytics and R programming language in order to analyze your Facebook’s
account data. After reading this blog, you will get to know how easy it is to fetch your Facebook’s
data into RStudio that is tool for data analysis.
We
have a lot of data on Facebook. Just think about your own Facebook account. How
many friends you have? How many friends of friends you have? Definitely the
answer is “so many”. Have you ever thought about analyzing that generated data
from Facebook into Rstudio? If not, it’s time to begin now.
Advantage of applying R Analytics
on Facebook Data :
- Bring data from Facebook into RStudio and shape your data with beautiful graphs
- Analyze your data with so many statistical packages that are available in the library of R
- Analyze the information about your friends and their life, simply by bringing that data into RStudio
- RStudio provides you ease of bringing the data from Facebook in order to end with useful insights.
Steps of connecting Facebook with
RStudio
Step 1: Login
your Facebook account, and Go to this link in another tab
“https://developers.facebook.com/tools/explorer/”
You will get a window like this:
Step 2: Look at the red
circle in the image,
go to that part and make it “Unversioned”
Step 3: Now, look at the Green circle in the image, go to that part and
click on Get Token. Another window will open up like shown below:
Step 4: Check all the
check boxes and click Get Access Token. A token will be generated which will be
valid for two hours from the time of generation. After two hours again you need
to refresh it or regenerate it.
Now, steps with Facebook API have been done,
it’s time to open RStudio. Now, you need to run couple of commands and you will
be able to bring data from Facebook into RStudio.
> token
<-“abcXYZ123465mnpl ”
> myInfo <- getUsers(“me”, token=token)
> myInfo$name
Now your connection to Facebook and RStudio
has established for next two hours. You can now extract information from your
Facebook account. Let’s say you want to fetch current locations of your friends
with their name and cities.
> myFriends
<- getFriends(token, simplify=T)
> myFriends_info
<- getUsers(myFriends$id, token=token, private_info=T)
> table(myFriends_info$location)
This will let you analyze
the information of locations of your friends in RStudio in a quick timestamp.
If you want to understand more about this package and the functions that I have used in this blog,
you can simply use the help feature of RStudio.
> ?Rfacebook
OR
> ??Rfacebook
Hope you find Big Data Analytics with R an interesting
topic!
5 comments
Click here for commentsRfacebook has a callapi feature..Just get the access token send the URL request to get the relevant json
ReplyNeeded to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. • Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyThanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area. java training in porur
ReplyAll your wonderfulWorks Gives These Kind Of Valuable Information's...Thanks for Spending your Good Time.This Unique Information's about Python is very useful
Replypython training in chennai | python training in annanagar | python training in omr | python training in porur | python training in tambaram | python training in velachery
I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this Salesforce Training who are providing certification and job assistance. Salesforce CRM training in Gurgaon
ReplyConversionConversion EmoticonEmoticon