mobolic/facebook-sdk

Get_all_connections, how to using?

valclemir opened this issue · 3 comments

o get all connections é um gerador, certo? Como fazer para usar? quando tento usar a seguir uma mensagem: <generator object get_all_connections at 0x7f0898cf29b0> . Please help

you might have to fork/clone this and implement that function on your own. it looks like it's deprecated already from the current version.

actually, i tried using 2.9 from the pip install version and I got this error:

---------------------------------------------------------------------------
GraphAPIError                             Traceback (most recent call last)
<ipython-input-155-b0b09152a1c4> in <module>()
      1 graph = facebook.GraphAPI(access_token = 'EAACEdEose0cBAK8vwfK4mZBkG3VabUOZBl2xpxEzVZClDBMWGCSjnmaRSoV93MMHUE2QLVUqkMCZCXkZB1U7rAHmJqL1bPsMijDZB253b9fP216MMQb2Hnoyk9TrIrhjQ573ZAcOgKozlEBtbZBPrXFmj8tWpmSOZBh2qboTLLUQC7sttjw9LTDKRA67Q6VxIDpwZD',
----> 2                           version = '2.9')

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/facebook/__init__.pyc in __init__(self, access_token, timeout, version, proxies)
     92                 if str(version) not in VALID_API_VERSIONS:
     93                     raise GraphAPIError("Valid API versions are " +
---> 94                                         str(VALID_API_VERSIONS).strip('[]'))
     95                 else:
     96                     self.version = "v" + str(version)

GraphAPIError: Valid API versions are '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7'

Might be better to install using the setup.py.

If you have a general question about how to use this SDK or Facebook's Graph API, you should be posting a question at https://groups.google.com/group/pythonforfacebook instead of creating an issue here.