Upload video remains in "In progress" state
Media video upload is not processed correctly. It continues to remain in "in progress" status for a long time.
Tony-Marketing-API.cn is a vibrant community dedicated to Facebook, Meta,Google Ads api, app development, Instagram, and related technologies. It offers valuable bug solutions, troubleshooting cases, and problem-solving strategies shared by users. Stay updated with real-world solutions, development tips, and the latest trends in digital marketing and app development.
Media video upload is not processed correctly. It continues to remain in "in progress" status for a long time.
I've read the docs and try to make a function to upload image on facebook and get its api but it seems not work at all. (the access token have permisson to do that request so ye)
def upload_image(token, gid, image_path): res = requests.post(f"https://graph.facebook.com/{gid}/photos", params={"access_token": token}, files={"source": open(image_path, "rb")}) print(res.text) return res.json().get("id")
The weird part is I kept getting the error #324 (Requires upload file).
After uploading the photos I tried to create a ‘multiple-photos’ post with a Call To Action button attached to it, the issue is that the post is being created successfully when I don’t include the CTA but when I add the CTA button (2nd code block) the post is created without the photos, here below are the payloads I used on [POST] /{page_id}/feed.
//This will create the Post with Album as a type successfully { "access_token": "<access_token>", "published": 1, "message": "An awesome Fb Post", "attached_media": [ { "media_fbid": "<uploaded_photo_id>" }, { "media_fbid": "<uploaded_photo_id>" } ] }
//The Post will be created with the Call To Action Button but without photos { "access_token": "<access_token>", "published": 1, "message": "An awesome Fb Post", "attached_media": [ { "media_fbid": "<uploaded_photo_id>" }, { "media_fbid": "<uploaded_photo_id>" } ], "call_to_action": { "type": "MESSAGE_PAGE", "value": { "app_destination": "MESSENGER", "link": "https://fb.com/messenger_doc/" } } }
Any Idea why the Post is not being created with both the images and the CTA button?
Thanks & I appreciate any feedback
I wish to use the created post in an AdCreative later on.
i m implementing fb login using react but when i click on icon this error is coming ,pls provide a solution ASAP.
Based on this document, I can create stories on my page, but I don't see any mention of how to set up CTA buttons like Learn more, See more,... to lead users to the website.
Can we do this through the Graph API?
Please let me know the keyword or link to the document if you know it.
Thanks so much!