HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
tschellenbach
Django-facebook
Python2011–2015
tschellenbach / Django-facebook

Django-facebook

Facebook open graph api implementation using the Django web framework in python

6Distinct people
8Mentions
0Explicit recommenders
1.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Facebook open graph api implementation using the Django web framework in python

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2011-01-12 21:03:29 UTC to 2015-02-26 14:25:28 UTC.

0122011-01-01 00:00:00 UTC to 2012-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20112012-01-01 00:00:00 UTC to 2013-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20132014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2015

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20112011-01-01 00:00:00 UTC2012-01-01 00:00:00 UTC202
20122012-01-01 00:00:00 UTC2013-01-01 00:00:00 UTC202
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC101
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC211
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC110

What Hacker News says

8 sources
> There's also poor testability, inability to re-use functions that reference the request internally, inability to statically analyze dependencies (less of an issue in Python, since the lack of types makes it hard to analyze them anyway), additional context that the developer must keep in his head, and inability to cross-reference parameters & call-sites and identify where a given variable is coming from in code browsers or debuggers. I don't know. Most of them seem like a non issue to me. Shouldn't the api cover that testability(of request)? At least, it does in Flask. Re-using a function which uses request won't be any different from re-using a function which uses datetime. I do get your point about difficulty of analyzing Python owing to dynamic typing and monkey patching, but I couldn't connect it to context local. As for cross refere
Read the rest
ncing, you just treat request as you treat datetime. > Singletons are no better - if you dress it up as RequestManager.get_current_request(), it's just as bad. If you don't understand why something is a bad idea, complying with the letter of the law without complying with the spirit doesn't really get you much. I won't do that. That is just a tongue in cheek comment to appease "death to globals" police. > Now I want my programs to do as little as possible and have access to as little as possible. I don't disagree with that but assuming that the request object is available for the request lifecycle is pretty reasonable. > Usually I end up pulling out the values I want inside the view function and calling any helpers using only those values, so I don't pass the request around anyway. You don't pass around request in a general workflow(why would you?). But consider this https://github.com/tschellenbach/Django-facebook. This does a post save signal when a new user registers. I need to send a welcome mail to the user asking him to activate his account. I need request.build_absolute_uri to construct the uri, and guess what, I don't have request in the callback and I don't have a way to obtain it. Now there can be other ways I can solve it - configure sites and generate url using sites; simply have the base url in settings and construct the url by doing a urljoin; may be in some alternate universe, django's reverse generates external url. But the thing is, I have needed access to request object on more than a few occasions. Granted if the callback passed me the request object, it won't have been an issue but it doesn't and I had to resort to thread local middleware to save the request object. > A fourth was that I worked a bunch with both systems and found that adding a parameter to each function along a call path is easy The issue is apis which you haven't wrote. I can always change the packages myself, but I don't want to sync up with upstream for something I see as a small change.
In Django plugins you shouldn't start without
Django-facebook is the only one I know of that will support the Graph API right now: https://github.com/tschellenbach/Django-facebook For just the fundaments: Facebook's own SDK: https://github.com/facebook/python-sdk/blob/master/examples/... or Requests: http://docs.python-requests.org/en/latest/index.html If you need more providers, there's also Django SocialAuth, but I'm not sure if it's updated for Facebook's OAuth 2 stuff yet.
In Ask HN: What do you use for Django integration with Facebook
Here are the Django solutions I've found: * https://github.com/pennersr/django-allauth (at least seems to work out of the box, looks to be some of the Pinax account app integrated with a decent way of both logging in and connecting to additional accounts after logging in. Pretty good demo at http://jug.gl/) * https://github.com/flashingpumpkin/django-socialregistration (basic functionality, note the many forks) * https://github.com/agiliq/Django-Socialauth (outdated, note the many forks) * https://github.com/dgouldin/django-socialite * https://github.com/omab/django-social-auth * https://github.com/kmike/django-registration-facebook-backen... * https://github.com/tschellenbach/Django-facebook
In Rails has Omniauth. Django has... a ton of one-off, limited social auth apps?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.