Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

How to read Facebook information in MATLAB?

Asked by Adriano

Adriano (view profile)

on 18 Aug 2011

I want to read data from a group in Facebook to make a statistical analysis (number of posts by each member, number of "likes", etc.).

How can I access Facebook to extract this information?

I would appreciate any information that could point me in the right direction.

1 Comment

Sean de Wolski

Sean de Wolski (view profile)

on 18 Aug 2011

Looks like you may be working toward the one useful use for Facebook.
Congrats +1

Adriano

Adriano (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Sreeram Mohan

Sreeram Mohan (view profile)

on 18 Aug 2011
Accepted answer

I just tried a thing quickly !

[Object Status] = urlread('https://graph.facebook.com/Mathworks')

The Object should contain the relevant data which could be parsed to get the required info and the status returns if the attempt succeded !

Getting a good JSON object parser would make extracting information more easier though !

I tried using one of the file exchange submission here and it works smoothly with no issues !

http://www.mathworks.com/matlabcentral/fileexchange/20565-json-parser

Hope this helps better !

--sreeram

0 Comments

Sreeram Mohan

Sreeram Mohan (view profile)

Answer by Sreeram Mohan

Sreeram Mohan (view profile)

on 18 Aug 2011

Here is an API published by facebook http://developers.facebook.com/docs/reference/api/

You should combine the calls with the matlab functions like urllread ..etc to get the data that you require !

Let me know if you need help !

--sreeram

0 Comments

Sreeram Mohan

Sreeram Mohan (view profile)

Contact us