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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How to read Facebook information in MATLAB?

Asked by Adriano 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 on 18 Aug 2011

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

Adriano

Products

No products are associated with this question.

2 Answers

Answer by Sreeram Mohan 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
Answer by Sreeram Mohan 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

Contact us