My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 23, 2009
    issue 90 (getLoggedInUser got "FacebookError: Error 102: Session key i...) commented on by markus.tornqvist   -   I had a behaviour when I created an app and created a tab for it, where the tab worked flawlessly for me, but when a friend tested it, request.facebook.uid was set to HIS uid(!) When it's installed on a page, it throws FacebookError: Error 102: Session key invalid or no longer valid Maybe related.
    I had a behaviour when I created an app and created a tab for it, where the tab worked flawlessly for me, but when a friend tested it, request.facebook.uid was set to HIS uid(!) When it's installed on a page, it throws FacebookError: Error 102: Session key invalid or no longer valid Maybe related.

Earlier this year

  • Nov 27, 2009
    issue 128 (support fql.multiquery) commented on by david.mirabito   -   I was also after this and ended up doing it myself, the patch is quite trivial. I've attached it, if someone could verify and commit it for me? It seems to work: queries = { 'myfriends' : "SELECT uid1 FROM friend WHERE uid2 = %s" % (fb.uid), 'stati' : "SELECT uid,name,status FROM user WHERE uid IN (SELECT uid1 FROM #myfriends) AND status.time > %d ORDER BY status.time" % 1259378001,# self.last_update, } stati = fb.fql.multiquery(queries) showdata(stati) would generate: [0] { fql_result_set : [{u'uid1': u'xxxx'}, <snip> {u'uid1': u'yyy'}] name : myfriends } [1] { fql_result_set : [{u'status': {u'message': u'Just had a wonderful time at the casa barilla cooking class!', u'status_id': xxx, u'time': 1259379313}, u'name': u'jane doe', u'uid': xxx}, {u'status': {u'message': u'would love a vodka now but will wait until Lucas party.', u'status_id': yyy, u'time': 1259387691}, u'name': u'John Doe', u'uid': yyy}, ] name : stati } which seems correct.
    I was also after this and ended up doing it myself, the patch is quite trivial. I've attached it, if someone could verify and commit it for me? It seems to work: queries = { 'myfriends' : "SELECT uid1 FROM friend WHERE uid2 = %s" % (fb.uid), 'stati' : "SELECT uid,name,status FROM user WHERE uid IN (SELECT uid1 FROM #myfriends) AND status.time > %d ORDER BY status.time" % 1259378001,# self.last_update, } stati = fb.fql.multiquery(queries) showdata(stati) would generate: [0] { fql_result_set : [{u'uid1': u'xxxx'}, <snip> {u'uid1': u'yyy'}] name : myfriends } [1] { fql_result_set : [{u'status': {u'message': u'Just had a wonderful time at the casa barilla cooking class!', u'status_id': xxx, u'time': 1259379313}, u'name': u'jane doe', u'uid': xxx}, {u'status': {u'message': u'would love a vodka now but will wait until Lucas party.', u'status_id': yyy, u'time': 1259387691}, u'name': u'John Doe', u'uid': yyy}, ] name : stati } which seems correct.
  • Nov 08, 2009
    issue 104 (Patch to fix incompatibility with python-json) commented on by nerdynick   -   Can we get this patch merged into the main release. Came across this same relative problem, and came to the same fix. Was about to report the issue and came across this ticket. It also appears that 106 is the same issue.
    Can we get this patch merged into the main release. Came across this same relative problem, and came to the same fix. Was about to report the issue and came across this ticket. It also appears that 106 is the same issue.
  • Nov 01, 2009
    issue 119 (cannot retrieve the photos in each album) commented on by fraser.harris   -   From: http://wiki.developers.facebook.com/index.php/Profile_archive_album "On Facebook, there are uids and aids. In the Facebook API, an "aid" corresponds to the two of these combined" Using the aid from photos.getAlbums results in the expected behavior.
    From: http://wiki.developers.facebook.com/index.php/Profile_archive_album "On Facebook, there are uids and aids. In the Facebook API, an "aid" corresponds to the two of these combined" Using the aid from photos.getAlbums results in the expected behavior.
  • Nov 01, 2009
    issue 119 (cannot retrieve the photos in each album) commented on by fraser.harris   -   I believe this is a Facebook API issue, not a PyFacebook issue. Using the API Test Console (http://developers.facebook.com/tools.php?api), and entering subj_id = _uid_ aid = _album_id_ pids = Returns empty list ( i.e. {}), exactly as described in this issue. Still looking for a work around...
    I believe this is a Facebook API issue, not a PyFacebook issue. Using the API Test Console (http://developers.facebook.com/tools.php?api), and entering subj_id = _uid_ aid = _album_id_ pids = Returns empty list ( i.e. {}), exactly as described in this issue. Still looking for a work around...
  • Oct 12, 2009
    issue 33 (djangofb.py startapp command produces only an empty folder) commented on by fshiori   -   I added 'facebook.djangofb.default_app' in setup.py. But I find the 'templates' folder still don't copy to site-packages I manual copy the templates to site-packages and run djangofb.py, it worked.
    I added 'facebook.djangofb.default_app' in setup.py. But I find the 'templates' folder still don't copy to site-packages I manual copy the templates to site-packages and run djangofb.py, it worked.
  • Sep 16, 2009
    issue 128 (support fql.multiquery) reported by warenix   -   is it possible to support fql.multiquery http://wiki.developers.facebook.com/index.php/Fql.multiquery
    is it possible to support fql.multiquery http://wiki.developers.facebook.com/index.php/Fql.multiquery
  • Aug 19, 2009
    issue 53 (support for batch api) commented on by marcdurden   -   I have voted on this as I am in need of the batch api for pyfacebook. I a know how to use pyfacebook, and have been able to add in facebook api methods that were not included in the pyfacebook code, but I have not had success in getting batch.run to work with pyfacebook. how would i go about getting this working in pyfacebook? If you know of anywhere online that demonstrates how to add this into pyfacebook, even better. Any updates on supporting this feature?
    I have voted on this as I am in need of the batch api for pyfacebook. I a know how to use pyfacebook, and have been able to add in facebook api methods that were not included in the pyfacebook code, but I have not had success in getting batch.run to work with pyfacebook. how would i go about getting this working in pyfacebook? If you know of anywhere online that demonstrates how to add this into pyfacebook, even better. Any updates on supporting this feature?
  • Aug 06, 2009
    issue 127 (Iframe auth_token params cyclic redirect after install) reported by marcdurden   -   What steps will reproduce the problem? 1. create an iframe pyfacebook app engine with webapp not django 2. on facebook install this new app 3. upon successful install refresh the page 4. the app should start a nonstoppable looping redirect What is the expected output? What do you see instead? The expected outcome should be a refresh with no problems. Instead, the app starts a nonstoppable redirection loop going back and forth between asking to install the app and authorizing the app. What version of the product are you using? On what operating system? Just downloaded the code from github. Please provide any additional information below. Here is a discussion on the facebook forums about this, but it is in relation to django and I'm using webapp: http://forum.developers.facebook.com/viewtopic.php?pid=159266 My code is similar to the code which is seen here, also documenting the same problem. http://stackoverflow.com/questions/1116314/how-does-one-avoid-a-cyclic-redirect-when-writing-a-facebook-application-using-py
    What steps will reproduce the problem? 1. create an iframe pyfacebook app engine with webapp not django 2. on facebook install this new app 3. upon successful install refresh the page 4. the app should start a nonstoppable looping redirect What is the expected output? What do you see instead? The expected outcome should be a refresh with no problems. Instead, the app starts a nonstoppable redirection loop going back and forth between asking to install the app and authorizing the app. What version of the product are you using? On what operating system? Just downloaded the code from github. Please provide any additional information below. Here is a discussion on the facebook forums about this, but it is in relation to django and I'm using webapp: http://forum.developers.facebook.com/viewtopic.php?pid=159266 My code is similar to the code which is seen here, also documenting the same problem. http://stackoverflow.com/questions/1116314/how-does-one-avoid-a-cyclic-redirect-when-writing-a-facebook-application-using-py
  • Aug 03, 2009
    issue 100 (facebook.photos.upload bug) commented on by macmichael01   -   FYI project has been moved to GITHUB.
    FYI project has been moved to GITHUB.
  • Aug 03, 2009
    issue 100 (facebook.photos.upload bug) commented on by Jim.mixt...@gmail.com   -   patch solved this for me, thanks! Why hasn't this been merged yet? it's been over 8 months!
    patch solved this for me, thanks! Why hasn't this been merged yet? it's been over 8 months!
  • Jul 28, 2009
    issue 113 (getSession doesn't work) commented on by rfirth1   -   Big problem. getSession() is broken, and always returns ERROR 100: Invalid parameters
    Big problem. getSession() is broken, and always returns ERROR 100: Invalid parameters
  • Jul 21, 2009
    issue 50 (auth.getSession() not working. ) commented on by subsume   -   http://code.google.com/p/pyfacebook/issues/detail?id=23 might solve it for you.
  • Jul 06, 2009
    issue 126 (Missing admin api calls) reported by sumit.chachra   -   What steps will reproduce the problem? 1. Missing admin api calls: http://wiki.developers.facebook.com/index.php/Category:Sessionless_API 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below. Are there plans on adding them ? Or are most users simply adding by hand (not difficult, but I'd rather be in sync with the trunk fixes/changes etc.)
    What steps will reproduce the problem? 1. Missing admin api calls: http://wiki.developers.facebook.com/index.php/Category:Sessionless_API 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below. Are there plans on adding them ? Or are most users simply adding by hand (not difficult, but I'd rather be in sync with the trunk fixes/changes etc.)
  • Jul 02, 2009
    issue 125 (Running the Development Server problem) reported by ztl2004   -   I just followed the turtorial and got stuck at "Running the Development Server " step, which I should have seen a basic app but not, facebook simply told me that something is wrong with my api key or my application does not exist, what should I do ?
    I just followed the turtorial and got stuck at "Running the Development Server " step, which I should have seen a basic app but not, facebook simply told me that something is wrong with my api key or my application does not exist, what should I do ?
  • Jul 02, 2009
    issue 124 (djangofb.py command not found) commented on by ztl2004   -   solved, chmod a+x djangofb.py,thanks anyway
    solved, chmod a+x djangofb.py,thanks anyway
  • Jul 01, 2009
    issue 124 (djangofb.py command not found) reported by ztl2004   -   I am just following the turtorial and use ln command to link that facebook folder to my site-package folder, then I tried to ln djangofb.py to my bin folder, or cp that file to bin folder, that worked. but when I tpye djangofb.py startapp fbapp, or sudo maybe, system just kept give me 'command not found', what should I do?
    I am just following the turtorial and use ln command to link that facebook folder to my site-package folder, then I tried to ln djangofb.py to my bin folder, or cp that file to bin folder, that worked. but when I tpye djangofb.py startapp fbapp, or sudo maybe, system just kept give me 'command not found', what should I do?
  • Jun 22, 2009
    issue 77 (New Facebook Automatic Authentication breaks typical pattern...) commented on by aggieben   -   Is this going anywhere?
    Is this going anywhere?
  • Jun 18, 2009
    issue 123 (request.facebook.users.getInfo fails intermittently) reported by brian.yamabe   -   What steps will reproduce the problem? 1. call users = request.facebook.users.getInfo([request.facebook.uid], ['first_name']) 2. fails intermittently (stack trace below) What is the expected output? What do you see instead? I would expect that this would always fail or always succeed. What version of the product are you using? On what operating system? Google App Engine app-engine-patch PyFacebook latest Please provide any additional information below. Exception in request: Traceback (most recent call last): File "/base/data/home/apps/facebabybook/1.334295504614973265/common/zip-packages/django-1.0.2.zip/django/core/handlers/base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/djangofb/__init__.py", line 166, in newview return view(request, *args, **kwargs) File "/base/data/home/apps/facebabybook/1.334295504614973265/myapp/views.py", line 47, in callback users = request.facebook.users.getInfo([request.facebook.uid], ['first_name']) File "<string>", line 7, in getInfo File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 593, in __call__ return self._client('%s.%s' % (self._name, method), args) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 1108, in __call__ response = urlread(self.facebook_url, post_data) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 94, in urlread payload=data, headers=headers) File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line 241, in fetch return rpc.get_result() File "/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 442, in get_result return self.__get_result_hook(self) File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2
    What steps will reproduce the problem? 1. call users = request.facebook.users.getInfo([request.facebook.uid], ['first_name']) 2. fails intermittently (stack trace below) What is the expected output? What do you see instead? I would expect that this would always fail or always succeed. What version of the product are you using? On what operating system? Google App Engine app-engine-patch PyFacebook latest Please provide any additional information below. Exception in request: Traceback (most recent call last): File "/base/data/home/apps/facebabybook/1.334295504614973265/common/zip-packages/django-1.0.2.zip/django/core/handlers/base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/djangofb/__init__.py", line 166, in newview return view(request, *args, **kwargs) File "/base/data/home/apps/facebabybook/1.334295504614973265/myapp/views.py", line 47, in callback users = request.facebook.users.getInfo([request.facebook.uid], ['first_name']) File "<string>", line 7, in getInfo File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 593, in __call__ return self._client('%s.%s' % (self._name, method), args) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 1108, in __call__ response = urlread(self.facebook_url, post_data) File "/base/data/home/apps/facebabybook/1.334295504614973265/facebook/__init__.py", line 94, in urlread payload=data, headers=headers) File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line 241, in fetch return rpc.get_result() File "/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 442, in get_result return self.__get_result_hook(self) File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2
  • Jun 11, 2009
    issue 122 (pyFacebook fails to do auth.getSession() with python 2.3) reported by vlad43210   -   What steps will reproduce the problem? 1. running pyFacebook under python 2.3 or earlier 2. requiring user login What is the expected output? What do you see instead? I discovered this issue as a new facebook app developer. When going through the tutorial, I got all the way up to requiring login (facebook.require_login()) and then my app would throw up a HTTP 500 error instead of presenting me with test output (my name). It is important to note that the error shows up AFTER I login, so the login screen is brought up (and indeed, Facebook gives the app an auth_key) What version of the product are you using? On what operating system? pyFacebook 0.1, Django 1.0.2 final, mod_wsgi 2.5, Python 2.3.4, Apache 2.1 on Fedora Core 3. Please provide any additional information below. I seem to have tracked the error down to two sources: ISSUE 1 : -the "@" decorator symbol is not used until 2.4. Workaround: get PyProtocols (I have 0.9.3) and use: from peak.util.decorators import decorate import facebook.djangofb as facebook decorate(decorate(facebook.require_login()) def canvas(request): ISSUE 2 : -sorted() is not used until python 2.4. The initializer file for the facebook module, facebook/__ini__.py, used sorted() in two different locations. Workaround: use sort instead of sorted, be careful about changing original lists. I realize that Python 2.3 is kind of old, but it's a stable version, and comes built into Fedora Core 3, so in case anybody is working on an old machine, maybe they don't have to repeat my troubleshooting efforts :) If this belongs somewhere else on the site (like the Wiki) I apologize, let me know and I will move it / delete it if able. Thanks, Vladimir
    What steps will reproduce the problem? 1. running pyFacebook under python 2.3 or earlier 2. requiring user login What is the expected output? What do you see instead? I discovered this issue as a new facebook app developer. When going through the tutorial, I got all the way up to requiring login (facebook.require_login()) and then my app would throw up a HTTP 500 error instead of presenting me with test output (my name). It is important to note that the error shows up AFTER I login, so the login screen is brought up (and indeed, Facebook gives the app an auth_key) What version of the product are you using? On what operating system? pyFacebook 0.1, Django 1.0.2 final, mod_wsgi 2.5, Python 2.3.4, Apache 2.1 on Fedora Core 3. Please provide any additional information below. I seem to have tracked the error down to two sources: ISSUE 1 : -the "@" decorator symbol is not used until 2.4. Workaround: get PyProtocols (I have 0.9.3) and use: from peak.util.decorators import decorate import facebook.djangofb as facebook decorate(decorate(facebook.require_login()) def canvas(request): ISSUE 2 : -sorted() is not used until python 2.4. The initializer file for the facebook module, facebook/__ini__.py, used sorted() in two different locations. Workaround: use sort instead of sorted, be careful about changing original lists. I realize that Python 2.3 is kind of old, but it's a stable version, and comes built into Fedora Core 3, so in case anybody is working on an old machine, maybe they don't have to repeat my troubleshooting efforts :) If this belongs somewhere else on the site (like the Wiki) I apologize, let me know and I will move it / delete it if able. Thanks, Vladimir
  • May 31, 2009
    issue 121 (undefined symbol - PyUnicodeUCS4_Decode inside call to _pars...) reported by matrutherford   -   python version 2.4.3 What steps will reproduce the problem? 1. got latest __init__.py, renamed to facebook.py and dropped in same directory as my simple gt.py script. 2. script looks as follows: #!/usr/local/bin/python import sys from facebook import Facebook sys.stderr = sys.stdout print "Content-Type: text/xml" # HTML is following print # blank line, end of headers print "<html><body>Hello World: running version ",sys.version fb = Facebook('<key>', '<private>') fb.auth.createToken() fb.login() fb.auth.getSession() fb.users.getInfo([fb.uid], ['name', 'birthday']) print "</body></html>" 3. view script via browser (Chrome v1) What is the expected output? What do you see instead? expected: html page displaying "hello world python 2.4.3" instead error with stacktrace printed: Traceback (most recent call last): File "gt.py", line 14, in ? fb.auth.createToken() File "/home/clientsi/public_html/northshore/gt/facebook.py", line 602, in createToken token = self._client('%s.createToken' % self._name) File "/home/clientsi/public_html/northshore/gt/facebook.py", line 1002, in __call__ return self._parse_response(response, method) File "/home/clientsi/public_html/northshore/gt/facebook.py", line 941, in _parse_response dom = minidom.parseString(response) File "/usr/lib/python2.4/xml/dom/minidom.py", line 1924, in parseString File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 32, in ? File "/usr/lib/python2.4/xml/parsers/expat.py", line 4, in ? ImportError: /usr/local/lib/python2.4/lib-dynload/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode What version of the product are you using? On what operating system? Not sure? Can't find version info in any file on site... running on python v2.4.3 OS & Kernel version: Linux 2.6.28.5-grsec-sg2
    python version 2.4.3 What steps will reproduce the problem? 1. got latest __init__.py, renamed to facebook.py and dropped in same directory as my simple gt.py script. 2. script looks as follows: #!/usr/local/bin/python import sys from facebook import Facebook sys.stderr = sys.stdout print "Content-Type: text/xml" # HTML is following print # blank line, end of headers print "<html><body>Hello World: running version ",sys.version fb = Facebook('<key>', '<private>') fb.auth.createToken() fb.login() fb.auth.getSession() fb.users.getInfo([fb.uid], ['name', 'birthday']) print "</body></html>" 3. view script via browser (Chrome v1) What is the expected output? What do you see instead? expected: html page displaying "hello world python 2.4.3" instead error with stacktrace printed: Traceback (most recent call last): File "gt.py", line 14, in ? fb.auth.createToken() File "/home/clientsi/public_html/northshore/gt/facebook.py", line 602, in createToken token = self._client('%s.createToken' % self._name) File "/home/clientsi/public_html/northshore/gt/facebook.py", line 1002, in __call__ return self._parse_response(response, method) File "/home/clientsi/public_html/northshore/gt/facebook.py", line 941, in _parse_response dom = minidom.parseString(response) File "/usr/lib/python2.4/xml/dom/minidom.py", line 1924, in parseString File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 32, in ? File "/usr/lib/python2.4/xml/parsers/expat.py", line 4, in ? ImportError: /usr/local/lib/python2.4/lib-dynload/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode What version of the product are you using? On what operating system? Not sure? Can't find version info in any file on site... running on python v2.4.3 OS & Kernel version: Linux 2.6.28.5-grsec-sg2
  • May 13, 2009
    issue 33 (djangofb.py startapp command produces only an empty folder) Status changed by sciyoshi   -   fixed in github, thanks alenp!
    Status: Fixed
    fixed in github, thanks alenp!
    Status: Fixed
  • May 12, 2009
    issue 33 (djangofb.py startapp command produces only an empty folder) commented on by AlenLPeacock   -   the following change to setup.py makes installation work without manual copying of directories: setup.py 11c11 < packages=['facebook', 'facebook.djangofb']) --- > packages=['facebook', 'facebook.djangofb', 'facebook.djangofb.default_app'])
    the following change to setup.py makes installation work without manual copying of directories: setup.py 11c11 < packages=['facebook', 'facebook.djangofb']) --- > packages=['facebook', 'facebook.djangofb', 'facebook.djangofb.default_app'])
  • May 06, 2009
    issue 120 (Add callback to the upload method) reported by damoxc   -   The attached patch adds a callback to the photos.upload method.
    The attached patch adds a callback to the photos.upload method.
  • Mar 29, 2009
    issue 50 (auth.getSession() not working. ) commented on by achew22   -   I was playing with this and I found that for me it was an issue with the BROWSER environment variable being set to something that wouldn't load. In my case it was set to links and it wasn't loading (didn't figure out why that was) but when I set BROWSER=firefox before running my script it then opened a page in firefox to validate my login. I changed the script a little in login so that it would print a login link no matter what so that if it failed to load (like if I was SSHing into a remote computer to test it out) I could copy the link. This is definitely not a good fix for production but it works for me and might provide some solutions to this. Best of luck
    I was playing with this and I found that for me it was an issue with the BROWSER environment variable being set to something that wouldn't load. In my case it was set to links and it wasn't loading (didn't figure out why that was) but when I set BROWSER=firefox before running my script it then opened a page in firefox to validate my login. I changed the script a little in login so that it would print a login link no matter what so that if it failed to load (like if I was SSHing into a remote computer to test it out) I could copy the link. This is definitely not a good fix for production but it works for me and might provide some solutions to this. Best of luck
  • Mar 12, 2009
    issue 113 (getSession doesn't work) commented on by hitechboy722   -   Yes, what if you want users to not keep having to go to a login page on the web everytime they start your application. isn't that the whole point of a 'desktop' app? Not having to constantly interface webpages. currently facebook.auth.getToken() then... facebook.auth.getSession() results in: ERROR 100: Invalid parameters blah blah
    Yes, what if you want users to not keep having to go to a login page on the web everytime they start your application. isn't that the whole point of a 'desktop' app? Not having to constantly interface webpages. currently facebook.auth.getToken() then... facebook.auth.getSession() results in: ERROR 100: Invalid parameters blah blah
  • Mar 12, 2009
    issue 113 (getSession doesn't work) commented on by hitechboy722   -   Yes, what if you want users to keep having to go to a login page on the web everytime they start your application. isn't that the whole point of a 'desktop' app? Not having to constantly interface webpages. currently facebook.auth.getToken() then... facebook.auth.getSession() results in: ERROR 100: Invalid parameters blah blah
    Yes, what if you want users to keep having to go to a login page on the web everytime they start your application. isn't that the whole point of a 'desktop' app? Not having to constantly interface webpages. currently facebook.auth.getToken() then... facebook.auth.getSession() results in: ERROR 100: Invalid parameters blah blah
  • Mar 12, 2009
    issue 40 (FacebookError from expiring session key with external app) commented on by thomas.st   -   I have the same problem. Is there any patch?
    I have the same problem. Is there any patch?
  • Feb 28, 2009
    issue 119 (cannot retrieve the photos in each album) reported by shadiakiki1986   -   What steps will reproduce the problem? 1. for current user get all albums 2. for each album get all photos 3. What is the expected output? What do you see instead? Expected: dict of elements corresponding to each photo Actual: empty list (i.e. {}) What version of the product are you using? On what operating system? pyfacebook 0.1 WinXP Please provide any additional information below. Kindly find attached a simplified example of what I'm trying to do.
    What steps will reproduce the problem? 1. for current user get all albums 2. for each album get all photos 3. What is the expected output? What do you see instead? Expected: dict of elements corresponding to each photo Actual: empty list (i.e. {}) What version of the product are you using? On what operating system? pyfacebook 0.1 WinXP Please provide any additional information below. Kindly find attached a simplified example of what I'm trying to do.
  • Feb 24, 2009
    issue 118 (How to handle Post-Remove URL) reported by m...@micz.it   -   I wasn't able to get the user id in the "Post-Remove URL" pinged by facebook ( more info here: http://wiki.developers.facebook.com/index.php/ Post-Remove_URL ). This because the check_session function returned always False. So in def check_session(self, request) after self.in_canvas = (request.POST.get('fb_sig_in_canvas') == '1') I added these lines if (request.POST.get('fb_sig_uninstall') == '1'): params = self.validate_signature(request.POST) if 'user' in params: self.uid = params['user'] return True return False I don't know if this is the right approach, but now it works. Any feedback is welcomed, thanks.
    I wasn't able to get the user id in the "Post-Remove URL" pinged by facebook ( more info here: http://wiki.developers.facebook.com/index.php/ Post-Remove_URL ). This because the check_session function returned always False. So in def check_session(self, request) after self.in_canvas = (request.POST.get('fb_sig_in_canvas') == '1') I added these lines if (request.POST.get('fb_sig_uninstall') == '1'): params = self.validate_signature(request.POST) if 'user' in params: self.uid = params['user'] return True return False I don't know if this is the right approach, but now it works. Any feedback is welcomed, thanks.
  • Feb 23, 2009
    issue 108 (Pyfacebook cant handle large numbers. So cant handle album i...) commented on by chokosabe   -   You have to get around this by using a CharacterField and treating the Ids as a string.
    You have to get around this by using a CharacterField and treating the Ids as a string.
  • Feb 19, 2009
    issue 93 (feed.publishUserAction does not take story_size argument) commented on by douglaswth   -   You can apply the patch I attached!
    You can apply the patch I attached!
  • Feb 19, 2009
    issue 93 (feed.publishUserAction does not take story_size argument) commented on by Rafal.Kalicki   -   Was this problem resovled? Do I have any other option or workaround to default story feed to short instead of one-line as it is now?
    Was this problem resovled? Do I have any other option or workaround to default story feed to short instead of one-line as it is now?
  • Feb 18, 2009
    issue 117 (Rename url_to to url_for) reported by gnuk0001   -   In facebook/wsgi.py, routes.url_to fails to import since the correct name of the function is routes.url_for. Probably a typo. Patch attached.
    In facebook/wsgi.py, routes.url_to fails to import since the correct name of the function is routes.url_for. Probably a typo. Patch attached.
  • Feb 17, 2009
    issue 54 (support for zope/plone (patch provided)) commented on by ianfhood   -   I haven't touched the code since it was written, but I do hope it will be a useful starter. Btw the above says it's based on r160 but the filename implies r116 so I no longer can say which it really was (I'd suggest you compare the revision dates). Since this file was somehow not kept here I also started a project page for it (just in case) which is available at: http://code.google.com/p/pyfacebook4zope/downloads/list Good luck.
    I haven't touched the code since it was written, but I do hope it will be a useful starter. Btw the above says it's based on r160 but the filename implies r116 so I no longer can say which it really was (I'd suggest you compare the revision dates). Since this file was somehow not kept here I also started a project page for it (just in case) which is available at: http://code.google.com/p/pyfacebook4zope/downloads/list Good luck.
  • Feb 17, 2009
    issue 54 (support for zope/plone (patch provided)) commented on by lordyoukai   -   I would like this diff - I intend to use my zope server for developing a facebook app.
    I would like this diff - I intend to use my zope server for developing a facebook app.
  • Feb 13, 2009
    issue 116 (users.isAppAdded is deprecated, here's a fix) reported by eromirou   -   the method users.isAppAdded is deprecated in favor of users.isAppUser. i'm attaching a diff that adds the method.
    the method users.isAppAdded is deprecated in favor of users.isAppUser. i'm attaching a diff that adds the method.
  • Feb 11, 2009
    issue 115 (Does not work with CGI) reported by mjs7231   -   Cookies are parsed incorrectly if running python via CGI. In fact, the whole verification area could be cleaned up and modularized a bit. If you want help adding CGI support let me know. I'm working on a hacked fix now, will update this if I get it working.
    Cookies are parsed incorrectly if running python via CGI. In fact, the whole verification area could be cleaned up and modularized a bit. If you want help adding CGI support let me know. I'm working on a hacked fix now, will update this if I get it working.
  • Feb 11, 2009
    issue 50 (auth.getSession() not working. ) commented on by mjs7231   -   I am getting intermittent errors with this. It seems like it's only working once per minute. Is this normal? I'm running the following code: pyFacebook = facebook.Facebook(facebookApi, facebookSecret) pyFacebook.auth.createToken() pyFacebook.login() pyFacebook.auth.getSession() print 'Session Key: ', pyFacebook.session_key print 'Your UID: ', pyFacebook.uid info = pyFacebook.users.getInfo([pyFacebook.uid], ['name', 'birthday', 'affiliations', 'sex'])[0] print 'Your Name: ', info['name'] print 'Your Birthday: ', info['birthday'] print 'Your Gender: ', info['sex']
    I am getting intermittent errors with this. It seems like it's only working once per minute. Is this normal? I'm running the following code: pyFacebook = facebook.Facebook(facebookApi, facebookSecret) pyFacebook.auth.createToken() pyFacebook.login() pyFacebook.auth.getSession() print 'Session Key: ', pyFacebook.session_key print 'Your UID: ', pyFacebook.uid info = pyFacebook.users.getInfo([pyFacebook.uid], ['name', 'birthday', 'affiliations', 'sex'])[0] print 'Your Name: ', info['name'] print 'Your Birthday: ', info['birthday'] print 'Your Gender: ', info['sex']
  • Feb 10, 2009
    issue 114 (No copyright headers in source) reported by jon.patrick.davies   -   I am trying to package pyfacebook for another package which uses it - however, pyfacebook has no copyright headers in any of the source files which may be a problem for the archive admins. Please add the source headers to SVN. Thanks, Jonathan
    I am trying to package pyfacebook for another package which uses it - however, pyfacebook has no copyright headers in any of the source files which may be a problem for the archive admins. Please add the source headers to SVN. Thanks, Jonathan
  • Feb 04, 2009
    issue 113 (getSession doesn't work) commented on by MasoudValafar   -   It works locality only if I add fb.login() before fb.auth.getSession() line. So I want to know how can I get a session key while my application is working on the server and poeple use it through facebook. thanks.
    It works locality only if I add fb.login() before fb.auth.getSession() line. So I want to know how can I get a session key while my application is working on the server and poeple use it through facebook. thanks.
  • Feb 04, 2009
    issue 113 (getSession doesn't work) reported by MasoudValafar   -   What steps will reproduce the problem? I cant run my application through facebook I created the following application. While it is working localy, it does not work through facebook (using the canvas page) FbApiKey = '...' FbSecretKey = '...' fb = facebook.Facebook(FbApiKey, FbSecretKey) fb.auth.createToken() fb.auth.getSession() What is the expected output? What do you see instead? I receive the following error: Error 100: Invalid parameter What version of the product are you using? On what operating system? Linux (Ubuntu) Please provide any additional information below.
    What steps will reproduce the problem? I cant run my application through facebook I created the following application. While it is working localy, it does not work through facebook (using the canvas page) FbApiKey = '...' FbSecretKey = '...' fb = facebook.Facebook(FbApiKey, FbSecretKey) fb.auth.createToken() fb.auth.getSession() What is the expected output? What do you see instead? I receive the following error: Error 100: Invalid parameter What version of the product are you using? On what operating system? Linux (Ubuntu) Please provide any additional information below.
  • Feb 02, 2009
    issue 112 (livemessage support PATCH ATTACHED) reported by m...@wakari.co.uk   -   Currently PyFacebook doesn't support the facebook LiveMessage Api Call, PATCH ATTACHED. Mat
    Currently PyFacebook doesn't support the facebook LiveMessage Api Call, PATCH ATTACHED. Mat
  • Feb 02, 2009
    issue 111 (django Fb Messages breaks admin PATCH ATTACHED) reported by m...@wakari.co.uk   -   What steps will reproduce the problem? 1. Use the included django FB Messages code, and install the context processor in the global settings, and then access the admin and it will break. What is the expected output? What do you see instead? Working Admin What version of the product are you using? On what operating system? Trunk Please provide any additional information below. quick patch attached
    What steps will reproduce the problem? 1. Use the included django FB Messages code, and install the context processor in the global settings, and then access the admin and it will break. What is the expected output? What do you see instead? Working Admin What version of the product are you using? On what operating system? Trunk Please provide any additional information below. quick patch attached
  • Jan 24, 2009
    issue 109 (added support for gzip-encoded responses from facebook) reported by raymond.yee   -   pyfacebook was failing for me on Python 2.5.4 for Win32 because requests and responses are being sent with gzip Content-Encoding. To deal with that situation, I made a patch to __init__.py (See attached file.) Please review and consider patching the distribution.
    pyfacebook was failing for me on Python 2.5.4 for Win32 because requests and responses are being sent with gzip Content-Encoding. To deal with that situation, I made a patch to __init__.py (See attached file.) Please review and consider patching the distribution.
  • Jan 19, 2009
    issue 108 (Pyfacebook cant handle large numbers. So cant handle album i...) commented on by chokosabe   -   Tried this on a 64 bit machine and same problem still persists. Its the same as this: http://forum.developers.facebook.com/viewtopic.php?id=20846 The problem looks more and more like a purely pyfacebook problem. It formats (for no apparent reason) 64 bit values to 32 bit. Even on a 64 bit machine.
    Tried this on a 64 bit machine and same problem still persists. Its the same as this: http://forum.developers.facebook.com/viewtopic.php?id=20846 The problem looks more and more like a purely pyfacebook problem. It formats (for no apparent reason) 64 bit values to 32 bit. Even on a 64 bit machine.
  • Jan 17, 2009
    issue 93 (feed.publishUserAction does not take story_size argument) commented on by douglaswth   -   I'm really confused as to why this patch hasn't been applied while similar fixes for other problems have gone right through?
    I'm really confused as to why this patch hasn't been applied while similar fixes for other problems have gone right through?
  • Jan 15, 2009
    issue 108 (Pyfacebook cant handle large numbers. So cant handle album i...) reported by chokosabe   -   What steps will reproduce the problem? 1. try and save an album id (aid) with the call photos.createAlbum 2. 3. What is the expected output? What do you see instead? Pyfacebook needs a way of being able to handle 64 bit values. Rightnow the 64bit values are 'edited' in json. So the user/server always sees the edited value. Should expect the aid values (album id) instead always get the number: 2174902547419030016 the real aid in this case should be: 2174902547419028373 What version of the product are you using? On what operating system? Using version 0.1 of pyfacebook. Please provide any additional information below.
    What steps will reproduce the problem? 1. try and save an album id (aid) with the call photos.createAlbum 2. 3. What is the expected output? What do you see instead? Pyfacebook needs a way of being able to handle 64 bit values. Rightnow the 64bit values are 'edited' in json. So the user/server always sees the edited value. Should expect the aid values (album id) instead always get the number: 2174902547419030016 the real aid in this case should be: 2174902547419028373 What version of the product are you using? On what operating system? Using version 0.1 of pyfacebook. Please provide any additional information below.
  • Jan 14, 2009
    issue 98 (SyntaxError: invalid syntax return ''.join(node.data for no...) commented on by lady.alys   -   The hashlib problem can be fixed for Python 2.3 and 2.4 because hashlib has been backported for use on those versions and can be downloaded from http://code.krypto.org/python/hashlib/ (much praise to Gregory P. Smith!) After installing hashlib, I was then able to run "djangofb.py startapp APPNAME" without any other errors. I realise this comment is off-topic for the original issue report, but I'm guessing that anyone facing that issue would also run into the hashlib problem, so I hope this is useful to them!
    The hashlib problem can be fixed for Python 2.3 and 2.4 because hashlib has been backported for use on those versions and can be downloaded from http://code.krypto.org/python/hashlib/ (much praise to Gregory P. Smith!) After installing hashlib, I was then able to run "djangofb.py startapp APPNAME" without any other errors. I realise this comment is off-topic for the original issue report, but I'm guessing that anyone facing that issue would also run into the hashlib problem, so I hope this is useful to them!
  • Jan 14, 2009
    issue 98 (SyntaxError: invalid syntax return ''.join(node.data for no...) commented on by lady.alys   -   WARNING: This is my first day of programming in Python, so be careful if you use what I describe below. I resolved this problem on my own server by editing line 816 to put square brackets inside the parentheses, like this: return ''.join([node.data for node in node.childNodes if node.nodeType == node.TEXT_NODE]) The square brackets seem to be necessary for the list comprehension to work, at least in python 2.3 and 2.4. I then had to make the same fix in another line, to change this: args[arg[0]] = ','.join(str(a) for a in arg[1]) to this: args[arg[0]] = ','.join([str(a) for a in arg[1]]) That got rid of all the invalid syntax errors. However, I then was shown this error: $ djangofb.py startapp fbapp Traceback (most recent call last): File "/home/mydir/pyfacebook/bin/djangofb.py", line 57, in ? import facebook File "/home/mydir/pyfacebook/facebook/__init__.py", line 55, in ? import hashlib ImportError: No module named hashlib A google search showed that hashlib.py is new in Python version 2.5, so it looks like pyfacebook won't work under 2.4 or lower (unless enough changes are made to make hashlib unnecessary). This might be why the original list comprehensions didn't contain square brackets - perhaps 2.4 removed the need for square brackets?
    WARNING: This is my first day of programming in Python, so be careful if you use what I describe below. I resolved this problem on my own server by editing line 816 to put square brackets inside the parentheses, like this: return ''.join([node.data for node in node.childNodes if node.nodeType == node.TEXT_NODE]) The square brackets seem to be necessary for the list comprehension to work, at least in python 2.3 and 2.4. I then had to make the same fix in another line, to change this: args[arg[0]] = ','.join(str(a) for a in arg[1]) to this: args[arg[0]] = ','.join([str(a) for a in arg[1]]) That got rid of all the invalid syntax errors. However, I then was shown this error: $ djangofb.py startapp fbapp Traceback (most recent call last): File "/home/mydir/pyfacebook/bin/djangofb.py", line 57, in ? import facebook File "/home/mydir/pyfacebook/facebook/__init__.py", line 55, in ? import hashlib ImportError: No module named hashlib A google search showed that hashlib.py is new in Python version 2.5, so it looks like pyfacebook won't work under 2.4 or lower (unless enough changes are made to make hashlib unnecessary). This might be why the original list comprehensions didn't contain square brackets - perhaps 2.4 removed the need for square brackets?
 
Hosted by Google Code