{"id":35038192,"url":"https://github.com/ramusus/django-facebook-posts","last_synced_at":"2025-12-27T08:04:52.755Z","repository":{"id":7602535,"uuid":"8960063","full_name":"ramusus/django-facebook-posts","owner":"ramusus","description":"Django implementation for Facebook Graph API Posts","archived":false,"fork":false,"pushed_at":"2016-07-28T11:50:49.000Z","size":190,"stargazers_count":11,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-02T13:58:43.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramusus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-22T20:16:44.000Z","updated_at":"2023-05-14T15:21:08.000Z","dependencies_parsed_at":"2022-07-31T15:09:11.856Z","dependency_job_id":null,"html_url":"https://github.com/ramusus/django-facebook-posts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ramusus/django-facebook-posts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-facebook-posts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-facebook-posts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-facebook-posts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-facebook-posts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramusus","download_url":"https://codeload.github.com/ramusus/django-facebook-posts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramusus%2Fdjango-facebook-posts/sbom","scorecard":{"id":761016,"data":{"date":"2025-08-11","repo":{"name":"github.com/ramusus/django-facebook-posts","commit":"f2085caef29ce45e1d51f8815b970d7882c6b2d9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":1,"reason":"Found 3/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T23:30:38.867Z","repository_id":7602535,"created_at":"2025-08-22T23:30:38.867Z","updated_at":"2025-08-22T23:30:38.867Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28075699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T08:04:50.756Z","updated_at":"2025-12-27T08:04:52.748Z","avatar_url":"https://github.com/ramusus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Facebook Graph API Posts\n===============================\n\n[![PyPI version](https://badge.fury.io/py/django-facebook-posts.png)](http://badge.fury.io/py/django-facebook-posts) [![Build Status](https://travis-ci.org/ramusus/django-facebook-posts.png?branch=master)](https://travis-ci.org/ramusus/django-facebook-posts) [![Coverage Status](https://coveralls.io/repos/ramusus/django-facebook-posts/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-facebook-posts)\n\nApplication for interacting with Facebook Graph API Posts objects using Django model interface\n\nInstallation\n------------\n\n    pip install django-facebook-posts\n\nAdd into `settings.py` lines:\n\n    INSTALLED_APPS = (\n        ...\n        'oauth_tokens',\n        'facebook_api',\n        'facebook_applications',\n        'facebook_pages',\n        'facebook_users',\n        'facebook_posts',\n    )\n\n    # oauth-tokens settings\n    OAUTH_TOKENS_HISTORY = True                                        # to keep in DB expired access tokens\n    OAUTH_TOKENS_FACEBOOK_CLIENT_ID = ''                               # application ID\n    OAUTH_TOKENS_FACEBOOK_CLIENT_SECRET = ''                           # application secret key\n    OAUTH_TOKENS_FACEBOOK_SCOPE = ['offline_access']                   # application scopes\n    OAUTH_TOKENS_FACEBOOK_USERNAME = ''                                # user login\n    OAUTH_TOKENS_FACEBOOK_PASSWORD = ''                                # user password\n\nUsage examples\n--------------\n\n### Fetch post by Graph ID\n\n    \u003e\u003e\u003e from facebook_posts.models import Post\n    \u003e\u003e\u003e post = Post.remote.fetch('19292868552_10150189643478553')\n    \u003e\u003e\u003e post\n    \u003cPost: Facebook Developers: \u003e\n    \u003e\u003e\u003e post.__dict__\n    {'_application_cache': \u003cApplication: NetworkedBlogs\u003e,\n     '_author_cache': \u003cPage: Facebook Developers\u003e,\n     '_author_content_type_cache': \u003cContentType: Facebook page\u003e,\n     '_external_links_post_save': [],\n     '_external_links_to_add': [],\n     '_foreignkeys_post_save': [],\n     '_state': \u003cdjango.db.models.base.ModelState at 0xbd7e7ec\u003e,\n     'actions': [{'link': 'http://www.facebook.com/19292868552/posts/10150189643478553',\n       'name': 'Comment'},\n      {'link': 'http://www.facebook.com/19292868552/posts/10150189643478553',\n       'name': 'Like'},\n      {'link': 'http://networkedblogs.com/hGWk3?a=share', 'name': 'Share'}],\n     'application_id': 18,\n     'author_content_type_id': 82,\n     'author_id': 9,\n     'author_json': {'category': 'Product/service',\n      'id': '19292868552',\n      'name': 'Facebook Developers'},\n     'caption': '',\n     'comments_count': 753,\n     'comments_json': {'count': 753,\n      'data': [{'created_time': '2012-12-30T17:07:19+0000',\n        'from': {'id': '100004288712236', 'name': 'Jian Liu'},\n        'id': '19292868552_10150189643478553_24586753',\n        'likes': 1,\n        'message': 'dsa'}, ...]},\n     'comments_real_count': 594,\n     'created_time': datetime.datetime(2011, 5, 10, 18, 35, 38, tzinfo=tzutc()),\n     'description': u'\\nWe continue to make Platform more secure for users. Earlier this year, we introduced the ability for users to browse Facebook over HTTPS. As a result, we provided \\u201cSecure Canvas URL\\u201d and \\u201cSecure Tab URL\\u201d fields in the Developer App for developers to serve their apps through an H',\n     'expanded_height': None,\n     'expanded_width': None,\n     'graph_id': '19292868552_10150189643478553',\n     'icon': 'http://m.ak.fbcdn.net/photos-b.ak/photos-ak-snc7/v85006/169/9953271133/app_2_9953271133_841622721.gif',\n     'id': 4364,\n     'likes_count': 8270,\n     'likes_json': {'count': 8270,\n      'data': [{'id': '100000499350811', 'name': u'Nguy\\u1ec5n V\\u0103n Linh'},\n       {'id': '670265477', 'name': 'Soonsang Hong'},\n       {'id': '100005341900488', 'name': 'Aloha Sanjay'},\n       {'id': '527488241', 'name': 'Princess Grace Dimaculangan'}]},\n     'likes_real_count': 0,\n     'link': 'http://developers.facebook.com/blog/post/497',\n     'message': '',\n     'message_tags': None,\n     'name': 'Developer Roadmap Update: Moving to OAuth 2.0 + HTTPS',\n     'object_id': None,\n     'owners_json': None,\n     'picture': 'http://m.ak.fbcdn.net/platform.ak/www/app_full_proxy.php?app=9953271133\u0026v=3\u0026size=z\u0026cksum=e15ac22d55f6a9501d3b3ac64c5fb763\u0026src=http%3A%2F%2Fimg.bitpixels.com%2Fgetthumbnail%3Fcode%3D78793%26size%3D120%26url%3Dhttp%3A%2F%2Fdevelopers.facebook.com%2Fblog%2F',\n     'place': None,\n     'privacy': {'value': ''},\n     'properties': [{'href': 'http://apps.facebook.com/blognetworks/blog/official_facebook_developer_blog',\n       'name': 'source',\n       'text': 'Official Facebook Developer Blog'},\n      {'href': 'http://developers.facebook.com/blog/post/497',\n       'name': 'link',\n       'text': 'Full Article...'}],\n     'source': '',\n     'status_type': 'app_created_story',\n     'story': '',\n     'story_tags': None,\n     'type': 'link',\n     'updated_time': datetime.datetime(2013, 3, 15, 1, 24, 46, tzinfo=tzutc()),\n     'with_tags': None}\n\n### Fetch post comments\n\n    \u003e\u003e\u003e from facebook_posts.models import Post\n    \u003e\u003e\u003e post = Post.remote.fetch('19292868552_10150189643478553')\n    \u003e\u003e\u003e post.fetch_comments()\n    [\u003cComment: Comment object\u003e, \u003cComment: Comment object\u003e, \u003cComment: Comment object\u003e, '...(remaining elements truncated)...']\n    \u003e\u003e\u003e post.comments.count()\n    82\n    \u003e\u003e\u003e post.comments.all()[0].__dict__\n    Out[53]:\n    {'_external_links_post_save': [],\n     '_external_links_to_add': [],\n     '_foreignkeys_post_save': [],\n     '_state': \u003cdjango.db.models.base.ModelState at 0xbfc51cc\u003e,\n     'author_content_type_id': 87,\n     'author_id': 6447,\n     'author_json': {u'id': u'767515690', u'name': u'Tim McKnight'},\n     'can_remove': False,\n     'created_time': datetime.datetime(2013, 3, 15, 5, 24, 46),\n     'graph_id': u'19292868552_10150189643478553_25321001',\n     'id': 3605,\n     'likes_count': 0,\n     'likes_real_count': 0,\n     'message': u'test',\n     'post_id': 4364,\n     'user_likes': False}\n\nFetch all comments of post\n\n    \u003e\u003e\u003e post.fetch_comments(all=True)\n    [\u003cComment: Comment object\u003e, \u003cComment: Comment object\u003e, \u003cComment: Comment object\u003e, '...(remaining elements truncated)...']\n    \u003e\u003e\u003e page.wall_comments.count()\n    610\n\n### Fetch post likes\n\n    \u003e\u003e\u003e from facebook_posts.models import Post\n    \u003e\u003e\u003e post = Post.remote.fetch('19292868552_10150189643478553')\n    \u003e\u003e\u003e post.likes_count # field with likes ammount transfered via API\n    8270\n    \u003e\u003e\u003e post.likes_real_count # field with ammount of real likes connections\n    0\n    \u003e\u003e\u003e post.fetch_likes()\n    [\u003cUser: Cosmos Pham\u003e, \u003cUser: Ismail Yanık\u003e, '...(remaining elements truncated)...']\n    \u003e\u003e\u003e post.like_users.count()\n    4316\n    \u003e\u003e\u003e post.likes_real_count # strange, but real ammount of likes often less than value of likes_count field\n    4316\n\n### Fetch comment likes\n\n    \u003e\u003e\u003e from facebook_posts.models import Post, Comment\n    \u003e\u003e\u003e post = Post.remote.fetch('19292868552_10150189643478553')\n    \u003e\u003e\u003e comment = Comment.remote.fetch('19292868552_10150189643478553_16210808')\n    \u003e\u003e\u003e comment.likes_count # field with likes ammount transfered via API\n    480\n    \u003e\u003e\u003e comment.likes_real_count # field with ammount of real likes connections\n    0\n    \u003e\u003e\u003e comment.fetch_likes()\n    [\u003cUser: Blondi Gjini\u003e, \u003cUser: Kerem Aydoğan\u003e, '...(remaining elements truncated)...']\n    \u003e\u003e\u003e comment.like_users.count()\n    480\n    \u003e\u003e\u003e comment.likes_real_count\n    480\n\nLicensing\n---------\n\nThis library uses the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).\nPlease see the library's individual files for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framusus%2Fdjango-facebook-posts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framusus%2Fdjango-facebook-posts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framusus%2Fdjango-facebook-posts/lists"}