You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't figure out how to create playable Ad with SDK
Steps/Sample code to reproduce the issue
I've tried to create a playable Ad using the SDK. I took this document and another document from the official documentation for reference. These documents show examples with source and source_zip fields, telling that I can upload playable ad in such way. I decided to use source_zip because it seems that I can pass binary content there, however when I'm trying to use these fields from the SDK, I get an error from the API:
FacebookRequestError: (#100) Invalid file or file handle. Double check the 'file' parameter
Which SDK version are you using?
"facebook-nodejs-business-sdk": "^16.0.2",
What's the issue?
Can't figure out how to create playable Ad with SDK
Steps/Sample code to reproduce the issue
I've tried to create a playable Ad using the SDK. I took this document and another document from the official documentation for reference. These documents show examples with
source
andsource_zip
fields, telling that I can upload playable ad in such way. I decided to usesource_zip
because it seems that I can pass binary content there, however when I'm trying to use these fields from the SDK, I get an error from the API:Here's example code I'm using:
Observed Results:
GraphQL API returns an error
Expected Results:
I was expecting that playable ad will get uploaded via the API.
Can we add some example to the
examples
directory?The text was updated successfully, but these errors were encountered: