Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fb.auth.createToken() fb.login() no longer works #72

Open
ClaireCJS opened this issue May 15, 2011 · 2 comments
Open

fb.auth.createToken() fb.login() no longer works #72

ClaireCJS opened this issue May 15, 2011 · 2 comments

Comments

@ClaireCJS
Copy link

As of 3 days ago, this stuff just simply does not work anymore. I've been using the same script daily for over 2 yrs, and now it won't work and hasn't worked for the longest period of time since I started.

I can't claim to understand the situation, but i'd love to know what's going on.

python25 c:\bat\fbupload.py -a "20110429 - Carolyn" -d "Picture taken on 2011/04/29." -n
Traceback (most recent call last):
File "c:\bat\fbupload.py", line 356, in
UploadPhotos()
File "c:\bat\fbupload.py", line 132, in UploadPhotos
fb.auth.createToken()
File "C:\Python25\lib\site-packages\facebook__init__.py", line 603, in createToken
token = self.client('%s.createToken' % self.name)
File "C:\Python25\lib\site-packages\facebook__init
.py", line 1001, in call
response = urlread(self.facebook_url, post_data)
File "C:\Python25\lib\site-packages\facebook__init__.py", line 101, in urlread
res = urllib2.urlopen(url, data=data)
File "C:\Python25\Lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "C:\Python25\Lib\urllib2.py", line 381, in open
response = self._open(req, data)
File "C:\Python25\Lib\urllib2.py", line 399, in _open
'_open', req)
File "C:\Python25\Lib\urllib2.py", line 360, in _call_chain
result = func(*args)
File "C:\Python25\Lib\urllib2.py", line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python25\Lib\urllib2.py", line 1082, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (10061, 'Connection refused')>

Thanks.

@gregorynicholas
Copy link

from facebook's python sdk repo:
https://github.com/facebook/python-sdk

"This SDK is deprecated. This SDK does not support the new cookie format we rolled out as part of the OAuth migration. We have no plans to add this support. Feel free to clone this repository and modify."

so, i have not parsed the php code to know the difference in the implementation of the headers in the requests.. but i'm assuming it would be quite easy to duplicate how the headers for the requests and cookies are being passed

@ClaireCJS
Copy link
Author

I abandoned this platform 9 mos ago due to that issue. Was a pain rewriting everything to use FbCmd, as a few of my particulars require modifying the actual library, so I had to add a couple lines to FbCmd... but... FbCmd actually works, worked then, and works now, so that's the direction I went.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants