Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to upload a remote video to Facebook using the chuckable API method.(https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_1920_18MG.mp4) #1

Open
BinRoq opened this issue Oct 16, 2021 · 0 comments

Comments

@BinRoq
Copy link
Owner

BinRoq commented Oct 16, 2021

Trying to upload a remote video to Facebook using the chuckable API method.(https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_1920_18MG.mp4)

$response = $fb->uploadVideo(xxxxx, $file, $data,'access_token');

I get a response back as There was a problem uploading your video file. Please try again with another file.After debugging into SDK source code I realize that $file->getSize() code is not working well for remote videos inside class FacebookResumableUploader, method name is start ()
. To get remote file size I use the snippet from here https://thisinterestsme.com/php-get-size-remote-file/ and pass statically in place of $file->getSize() and that works fine. please share your thoughts on this.Can you please add support for this if possible

Originally posted by @soju-ti in facebookarchive/php-graph-sdk#1252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant