{ "info": { "author": "Mohammed Hammoud", "author_email": "mohammed@iktw.se", "bugtrack_url": null, "classifiers": [], "description": "===================\nFacebook Token\n===================\n\n# Install\npip install facebooktoken\n\n# Prepare your necessary varibles\n1. Visit https://developers.facebook.com/tools/explorer/ and retrieve your short lived access token\n2. Visit https://developers.facebook.com/apps/ and retreive your **APP ID** and **APP SECRET**\n\n# Use your retrieved variables\n```python\nfrom facebooktoken import FacebookTokenRefresher\n\nftr = FacebookTokenRefresher(\n\tapp_id=700797440051611,\n\tapp_secret=\"485c92c8220b87badbe8f6bb5cd02be7\",\n\tshort_access_token=\"EAAJ9Xx55SZA0BAHmtrLHE3mvthKHW5mbBDXpkW6haI62UBevj8bZB1DWdoGKKtYhevbZBvtyOBHVdC7i3cFmxbO7PaUpjS2yovRO4BWPsNcmRqLzUCcAcU70dkl3WrdrqZAvG1jPWrdcnVJZANKiZCJmqf44vXfNU9kAzA9uqRM0FTzYZBk6P6QYlpQJ2LJiNQZD\"\n)\n\nresults = ftr.refresh()\n```\n\n### Results with status code 200\n```json\n{\n\t'access_token': 'EAAJ9Xx55SZA0BAKt4QswTRq7CFx0V4a9Ria1DrOlP36rtyJDUZAOmIdMaO7LZBTInDUaN7jnIgckxwy5FYApzqrpYYhbM5rsBSzx9TLZAdKrFk9BRDCw6foj07dEYkQhbPq8TYYeRYqDeLutgwB4hbVyYSes43AZD',\n\t'expires': u'5179894'\n}\n```\n\n## On failure\nBy default on failure FacebookTokenRefresherException will get raised with the response data. You could if needed pass raise_exception=False when using the *refresh()* method.\n\n### Results on failure with execption raised (Exception)\n```python\nfacebooktoken.base.FacebookTokenRefresherException: {\n \"error\": {\n \"message\": \"Invalid Client ID\",\n \"code\": 101,\n \"type\": \"OAuthException\",\n \"fbtrace_id\": \"EYsYDFbxVAm\"\n }\n}\n```\n\n### Results on failure without execption raised (Dictionary)\n```json\n{\n \"error\": {\n \"message\": \"Invalid Client ID\",\n \"code\": 101,\n \"type\": \"OAuthException\",\n \"fbtrace_id\": \"DFbQ8aA94t5\"\n }\n}\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iktw/python-facebook-token", "keywords": null, "license": "MIT licence, see LICENCE.txt", "maintainer": null, "maintainer_email": null, "name": "facebooktoken", "package_url": "https://pypi.org/project/facebooktoken/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/facebooktoken/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/iktw/python-facebook-token" }, "release_url": "https://pypi.org/project/facebooktoken/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Lightweight library for refreshing your facebook access token.", "version": "0.0.1" }, "last_serial": 2601405, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a5b51f299384e3244aeb84c2181e0f9f", "sha256": "15283aa5b7ff4f654f7ba1c1af47b8264bbe48af75df76d9df94bcc0a2aa5160" }, "downloads": -1, "filename": "facebooktoken-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a5b51f299384e3244aeb84c2181e0f9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3230, "upload_time": "2017-01-27T09:34:36", "url": "https://files.pythonhosted.org/packages/5d/58/9dcca39c5f9c754096e39a47b4b0e72c3bf19225a5ee0b9e39d16e9bcdff/facebooktoken-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5b51f299384e3244aeb84c2181e0f9f", "sha256": "15283aa5b7ff4f654f7ba1c1af47b8264bbe48af75df76d9df94bcc0a2aa5160" }, "downloads": -1, "filename": "facebooktoken-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a5b51f299384e3244aeb84c2181e0f9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3230, "upload_time": "2017-01-27T09:34:36", "url": "https://files.pythonhosted.org/packages/5d/58/9dcca39c5f9c754096e39a47b4b0e72c3bf19225a5ee0b9e39d16e9bcdff/facebooktoken-0.0.1.tar.gz" } ] }