Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Continuously "couldn't authenticate" #28
Sanity warning: this is probably an issue with how I'm producing access tokens, rather than the API.
I have attempted to use an access token (created by https://developers.facebook.com/tools/explorer/ and checking every single permission, outputting something that looks like: CAACEdE ... dCqIkf6krQECVGfaOsPqBk), and the ID provided by the GET > /v2.5/me?fields=id,name (looking similar to the format 10153 ... 52316).
However, the example to like 5 users always returns the following:
Is there a way to create these tokens automatically, so that newbies like me can't bugger it up? If not, what's the process to create a token and ID that works?
Managed to get extended token, used facepy to get FB id but after that still couldn't authenticate.
graph = facepy.GraphAPI(user.access_token) fb_user_id = graph.get('me')['id'] print fb_user_id session = pynder.Session(str(fb_user_id), str(user.access_token)) potential_matches = session._api.recs()['results'] print potential_matches
I also tried with and without the str.