How To Steal Data From Facebook Using Python And Facebook-SDK

Praveen Singh         No comments

Ok, it sounds interesting and believe me, it is interesting.Ubuntu is my favorite platform to do any kind of technical stuff but there is some problem in my Ubuntu Os.So, performing this trick on windows platform.

Let's see how to do this....

So, first of all  install facebook-sdk to use facebook API..

*One thing I want to mention here , use this facebook-sdk with Python 2.x version not with Python 3.x..

HOW TO INSTALL FACEBOOK-SDK:

Go to Python27->Scripts folder using Command Prompt.


As you can see, it is already installed in my system.

Now, we can steal data from facebook using this module's functions...


Grab complete code here.....

You also have to generate access token to make this code work...

HOW TO GENERATE ACCESS TOKEN:

Go here.

Click on 'Get Access Token' button.

It will pop up a window, select some boxes based on your requirements and click 'Get access token'.


Once this gets generated , Just Copy-Paste it and use it in your code.

OUTPUT OF OUR CODE :


I am interested in Movie category. So, I have used its 'id' to get some more information..


A lot of interesting information here...

release_date : July 25
talking_about_count : 9886
also, an image is here...
https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-frc3/t1.0-9/s720x720/1970458_690026
707710062_1244083687_n.jpg

Published by Praveen Singh

A blogger by passion.You can find me tucked in my bed and blogging on weekends when not roaming around. Besides blogging, I love music and you can find my songs on my fb page:PraveenUnplugged
.
Follow on Youtube : Videos On Latest Happenings |ThingsToKnow
.
Follow us Talend In Action

0 responses:

© 2015 Techie's House. Designed by Bloggertheme9