peteshinners
unread,Oct 28, 2009, 12:54:12 AM10/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to minifb
A new version 1.2 of minifb is available.
There is a substantial change to the validate function. The returned
dictionary now only contains the values that were signed by Facebook.
This is the only secure way for this to work, but this will require a
change to any form handling code, since posted forms received a mix of
your own fields and the signed Facebook fields. The validate function
also accepts a wider variety of dictionary like mappings. This should
allow FieldStorage and other cgi style mappings to be passed in
directly.
This fixes the longstanding but with the call_id value using time. It
now uses an incrementing integer. This should definitely fix problems
with rapid calls to the API. I am still not totally sure if this is
thread safe, but it will behave much better than before with multiple
threads. (I'm definitely not seeing any problems on my Facebook app.)
This release also adds support for Python3. It can run from Python2 or
Python3 with the same Python module. The Python3 support seems to be
working, but I didn't actually test it against Facebook.
Btw, since I'm working with the code a bit, now is the best time to
send in any suggestions. I still could do a wrapper for the "retry N
times" request. But I'm hoping with the call_id change that will no
longer be necessary.