我只是试试这个
import facebook
fb = facebook.Facebook('YOUR_API_KEY', 'YOUR_SECRET_KEY')
fb.auth.createToken()
fb.login()
fb.auth.getSession()
fb.set_status('Checking out StackOverFlow.com')
得到了这个
gunslinger@c0debreaker:~$ python Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import facebook
>>> fb = facebook.Facebook('MY_API_KEY', 'MY_SECRET_KEY')
>>> fb.auth.createToken() u'SECRET'
>>> fb.login()
>>> fb.auth.getSession() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-i686/egg/facebook/__init__.py", line 670, in getSession
File "build/bdist.linux-i686/egg/facebook/__init__.py", line 1123, in __call__
File "build/bdist.linux-i686/egg/facebook/__init__.py", line 1056, in _parse_response
File "build/bdist.linux-i686/egg/facebook/__init__.py", line 1007, in _check_error
facebook.FacebookError: Error 100: Invalid parameter
>>> fb.set_status('Checking out StackOverFlow.com') Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'Facebook' object has no attribute 'set_status'
>>>
pyfacebook 删除最新 pyfacebook 中的 set_status() 函数?