Skip to main content

django-social-autoposter

A standalone, modular Django REST Framework package for broadcasting social media posts simultaneously across Facebook Pages, Instagram Business, X (Twitter), and LinkedIn with unified logging, generic model linking, and environment-based configuration.

Current Version: 0.1.1

Quick Start

1. Installation

pip install django-social-autoposter

2. Configure INSTALLED_APPS

In your Django settings.py:

INSTALLED_APPS = [
    ...,
    'rest_framework',
    'django_social_autoposter',
]

3. Add URL Patterns

In your Django urls.py:

from django.urls import path, include

urlpatterns = [
    path('social/', include('django_social_autoposter.urls')),
]

4. Run Migrations

python manage.py migrate

Twitter / X (API v2) User Context Requirement

Twitter’s POST /2/tweets endpoint rejects OAuth 2.0 Application-Only Bearer Tokens with 403 Forbidden. To post tweets on behalf of an account, provide OAuth 1.0a User Context tokens in .env or via SocialPlatformConfig:

  • TWITTER_API_KEY (Consumer Key)

  • TWITTER_API_SECRET (Consumer Secret)

  • TWITTER_ACCESS_TOKEN (User Access Token)

  • TWITTER_ACCESS_TOKEN_SECRET (User Access Token Secret)

Critical Developer Portal Setting: In Twitter Developer Portal under Project & App settings -> User authentication settings, set app permissions to “Read and write” before generating or regenerating the Access Token and Access Token Secret.

Python Service Usage

from django_social_autoposter.services import SocialBroadcastService

broadcast = SocialBroadcastService.broadcast(
    title="Product Launch",
    message="Check out our new release!",
    link_url="https://example.com/product",
    image_url="https://example.com/image.jpg",
    platforms=['facebook', 'twitter', 'linkedin', 'instagram'],
    source_instance=my_instance
)

Metadata

Release files for django-social-autoposter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-social-autoposter 0.1.1
File Size Uploaded Provenance Actions
django_social_autoposter-0.1.1.tar.gz 46.3 kB Without provenance Details for django_social_autoposter-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-social-autoposter 0.1.1
File Interpreter ABI Platform Actions
django_social_autoposter-0.1.1-py3-none-any.whl Python 3 none any Details for django_social_autoposter-0.1.1-py3-none-any.whl

Total release size: 108.3 kB

Release files / django_social_autoposter-0.1.1.tar.gz

Download URL django_social_autoposter-0.1.1.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d88c61471a104d292e73676a4ccd34d7cc9063ab80aa95311557d35a5bc00ec2
BLAKE2b-256 checksum
How to use checksums
f8cf3c5a260f41d34b3c650f335a96216658f1097bd6b22e509333327514a984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / django_social_autoposter-0.1.1-py3-none-any.whl

Download URL django_social_autoposter-0.1.1-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c2a6ec4286bcb16a1445cddf23fc145e74fd7a7eac349b31f8e7ac2d7dfdf64
BLAKE2b-256 checksum
How to use checksums
6cb9aa0b02527bbf630e93199f2564cd46fd5cfe0251ffbceadcfd61e6342f82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for django-social-autoposter 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page