Skip to content
Browse files

fix facebook sdk

  • Loading branch information...
1 parent 89820de commit fcc599dd7d25f13e88317c30ea1960e15c8e1190 @nsb committed Apr 8, 2011
Showing with 5 additions and 2 deletions.
  1. +3 −0 .gitignore
  2. +2 −2 facebook.py
View
3 .gitignore
@@ -0,0 +1,3 @@
+*~
+*.pyc
+
View
4 facebook.py
@@ -36,7 +36,7 @@
import cgi
import hashlib
import time
-import urllib
+import urllib, urllib2
# Find a JSON parser
try:
@@ -168,7 +168,7 @@ def request(self, path, args=None, post_args=None):
else:
args["access_token"] = self.access_token
post_data = None if post_args is None else urllib.urlencode(post_args)
- file = urllib.urlopen("https://graph.facebook.com/" + path + "?" +
+ file = urllib2.urlopen("https://graph.facebook.com/" + path + "?" +
urllib.urlencode(args), post_data)
try:
response = _parse_json(file.read())

0 comments on commit fcc599d

Please sign in to comment.
Something went wrong with that request. Please try again.