social networks

26 views
Skip to first unread message

dummyman dummyman

unread,
Feb 22, 2012, 11:57:25 AM2/22/12
to django...@googlegroups.com
hi,

How to access facebook apis inside python script  ? I am using django framework

yati sagade

unread,
Feb 22, 2012, 12:25:21 PM2/22/12
to django...@googlegroups.com
I have always used the FB API using core Python urllib and other helpers(after reading the FB API docs, of course), but you may find this this and this helpful.
On Wed, Feb 22, 2012 at 10:27 PM, dummyman dummyman <temp...@gmail.com> wrote:
hi,

How to access facebook apis inside python script  ? I am using django framework

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Yati Sagade

(@yati_itay)


Martey Dodoo

unread,
Feb 23, 2012, 7:05:19 AM2/23/12
to django...@googlegroups.com
On Wednesday, February 22, 2012 12:25:21 PM UTC-5, yati sagade wrote:
I have always used the FB API using core Python urllib and other helpers(after reading the FB API docs, of course), but you may find this this and this helpful.

pyfacebook has not been updated in over 2 years and uses the deprecated REST API, so it would be a bad place for a beginner to start. I would try using either one of the various unofficial forks of the official Facebook SDK (I prefer PythonForFacebook's [1], but I might be biased because I have commit access), or one of the two "django-facebook" libraries (PythonForFacebook's [2] or Thierry Schellenbach's [3]).

dummyman dummyman

unread,
Feb 23, 2012, 11:49:20 AM2/23/12
to django...@googlegroups.com
Hi ,
Hope u dont mind. I am very new to this . I want to use facebook apis to gather profile information and do some data mining on it using django. Please tell me the starting point for me so that i can proceed further. Hope u dont mind asking silly questions

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/SvmBG6s1YcIJ.

yati sagade

unread,
Feb 23, 2012, 12:35:22 PM2/23/12
to django...@googlegroups.com
Hi dummyman,
Everyone starts out as a beginner :) As Martey pointed out, pyfacebook is dated now(Thanks Martey!) - You can go through the docs on the links posted by him. If you have a problem, try searching on StackOverflow; they have a team of FB developers monitoring questions on FB app development.

Also, if you are in for some serious learning, go through this tutorial. Actually, the most difficult part is to get the oAuth part right - once that is done, using the returned JSON data in Python is matter of working on dicts. The FB docs are comprehensive, but may be daunting at first. You can, and maybe should use libraries already developed, but learning oAuth 2.0 authorization will be nice experience :) - Also, Google+ have launched their own API for developers which also uses oAuth 2.0 for authorization.
--
Yati Sagade

(@yati_itay)


Reply all
Reply to author
Forward
0 new messages