Add Meta Facebook Login OAuth and social media attach/publish.
Connect Facebook and Instagram via shared portal Meta App credentials (Facebook Login for Business), and let compose attach DB-stored images/videos with live preview and platform publish.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Generated manually for StoredFile social media kinds
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("messaging", "0005_message_opened_clicked_statuses"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="storedfile",
|
||||
name="kind",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("campaign_image", "Campaign image"),
|
||||
("social_image", "Social image"),
|
||||
("social_video", "Social video"),
|
||||
],
|
||||
default="campaign_image",
|
||||
max_length=32,
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -122,6 +122,8 @@ class StoredFile(UUIDPrimaryKeyModel, TimeStampedModel):
|
||||
|
||||
class Kind(models.TextChoices):
|
||||
CAMPAIGN_IMAGE = "campaign_image", "Campaign image"
|
||||
SOCIAL_IMAGE = "social_image", "Social image"
|
||||
SOCIAL_VIDEO = "social_video", "Social video"
|
||||
|
||||
kind = models.CharField(
|
||||
max_length=32, choices=Kind.choices, default=Kind.CAMPAIGN_IMAGE
|
||||
|
||||
Reference in New Issue
Block a user