Posts under category facebook-graph-api

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 wish to find a solution to this issue i have been facing for a long while, trying to publish a reel on instagram. It keeps returning this error: Media upload has failed with error code 2207026 which means its not in the required format, i have tried with countless videos, uploaded them to my google drive and input the link to the video but still the same error, i came across this: Facebook Graph API - Getting error 2207026 when trying to upload video

And also implemented the last suggesstion in my code as shown below:

public String uploadFile(MultipartFile file) {         String extension = StringUtils.getFilenameExtension(file.getOriginalFilename());         var key = UUID.randomUUID() + "." + extension;         String directory = this.fileStorageLocation;         Path newPath = Paths.get(directory).toAbsolutePath().normalize();         try {             Files.createDirectories(newPath);             Path inputFilePath = newPath.resolve(StringUtils.cleanPath(key));             Path outputFilePath = newPath.resolve("output.mp4");             Files.copy(file.getInputStream(), inputFilePath, StandardCopyOption.REPLACE_EXISTING);             executeFFmpegCommand(inputFilePath.toString(), outputFilePath.toString());         } catch (IOException ex) {             Logger.getLogger(FileService.class.getName()).log(Level.SEVERE, null, ex);         }         return key;     }     private void executeFFmpegCommand(String inputFilePath, String outputFilePath) throws IOException {         String ffmpegPath = "C:\\ffmpeg\\bin\\ffmpeg.exe";         String[] ffmpegCommand = {                 ffmpegPath,                 "-i", inputFilePath,                 "-c:v", "libx264",                 "-aspect", "16:9",                 "-crf", "18",                 "-vf", "scale=iw*min(1280/iw\\,720/ih):ih*min(1280/iw\\,720/ih),pad=1280:720:(1280-iw)/2:(720-ih)/2",                 "-fpsmax", "60",                 "-preset", "ultrafast",                 "-c:a", "aac",                 "-b:a", "128k",                 "-ac", "1",                 "-pix_fmt", "yuv420p",                 "-movflags", "+faststart",                 "-t", "59",                 "-y", outputFilePath         };         ProcessBuilder processBuilder = new ProcessBuilder(ffmpegCommand);         processBuilder.inheritIO();         Process process = processBuilder.start();         try {             process.waitFor();             System.out.println("FFmpeg command executed successfully.");         } catch (InterruptedException e) {             throw new IOException("Error executing FFmpeg command: " + e.getMessage(), e);         }     } 

And uploaded the video to my drive and put in the link again, but still the same error, i dont know could be the issue, could someone provide a suggestion or a link to a video that has been tested with, because i dont see what am doing wrong, thanks.

I am facing issue about creating facebook ad via api, My code was working and I am using v17 of meta apis, After that when I try to create the ad I get this error too

{   "error": {     "message": "Invalid parameter",     "type": "OAuthException",     "code": 100,     "error_subcode": 2490446,     "is_transient": false,     "error_user_title": "Creative status is WITH_ISSUES",     "error_user_msg": "Creating ad using ad creative with WITH_ISSUES status is not allowed. The ad creative is in WITH_ISSUES status with error code 2643026 and error message: ‎خطأ أثناء معالجة الإعلان: نواجه مشكلة في معالجة طلبك. لحل المشكلة، يرجى محاولة النشر مرة أخرى. إذا كنت لا تزال تواجه مشكلات، يرجى التواصل مع فريق الدعم. نعتذر عن أي إزعاج.‎ Please fix the ad creative, try use recreate ad creative or another ad creative to proceed.",     "fbtrace_id": "AWGR_J-QxQNRI6skOhmUuV2"   } } 

I need to troubleshooting how can I find what's wrong with the creatives that I create

I'm having an issue that when I try to use the debug_token?input_token={} endpoint for meta graph api, I get a permissions error if I use a System-User access token to try to debug that very same token.

{   "error": {     "message": "(#100) You must provide an app access token, or a user access token that is an owner or developer of the app",     "type": "OAuthException",     "code": 100,     "fbtrace_id": "XYZ123DOREMI"   } } 

I have an app where I ask the user to generate a System User Token and I can't seem to use that token with the debug endpoint to actually see the specifications of the token/ ensure it was generated properly and know when it will expire. I am able to get the debug endpoint to work only if I use a different access token such as a user access token. Is there anyway to fix this? Maybe it is missing permissions on the system user token?