Closed ImranBinShoukat closed 4 years ago
I have worked on this and this is under construction. I need to discuss few logic points on this with imran as logic to download the video and upload to facebook is already available on accounts server for broadcast feature youtube component.
@ImranBinShoukat I have completed the work on this. Please test after merging.
I have tested this. Sometimes it is giving error when I provide youtube link.
@sojharo please look into this
I have tested it with several videos. I am not able to reproduce this. I think this must be due to Internet glitch. In such case, we can show on UI that video upload failed, please try again. But I think this might only happen on localhost due to slow internets we have. This might not occur on digital ocean droplets.
@ImranBinShoukat Please suggest.
It is giving error "Failed to fetch youtube video info"
@sojharo please look into this
@ImranBinShoukat I have fixed the problem on attachment now. Please test on staging:
Here are the screenshots of server response on attachment:
On following screenshot, it shows that it says URL is valid
However, the UI is not showing undefined.
Tested. Working fine on staging
Since, #7459 is complete, please add the Facebook video code in chatbot automation too.
I started work on this yesterday and it is under construction. For some videos, it is giving me errors that video doesn't belong to the page. I am working more on this today.
Please check if it is a requirement that the Video belongs to that page
Any facebook video which is public can be used.
I have completed the work on this. @ImranBinShoukat please test after review.
Tested this. There are couple of issues here:
@sojharo This is crital for us
Also, for private videos it should say that video is private. So that we can display a message on client that this can not be sent
I have fixed the above error. In response, server will say "Video is private" in description for all the facebook private video URLs.
It is not accepting this url https://web.facebook.com/144227143333/videos/221806225768784/?_rdc=1&_rdr
I have also fixed the above error and it will accept these type of facebook video URLs as well.
Now you can test it.
@ImranBinShoukat Please merge my pull request and test on staging.
@ImranBinShoukat as per our discussion, I have fixed the image and video problems and also now I am sending the private video message as 500 error message as required. Please test now on staging.
Tested. Working fine on staging
@ImranBinShoukat please test on production.
Tested on production
I tried publishing KiboPush chatbot and Facebook videos are still not sending. @sojharo please look into it
Was able to get Facebook videos to send by using my own account. Marking this as resolved
@sojharo This is not fully working
On Askkibo ChatBot on Women's Right, the link is for FB Video but is it not playing within Messenger but on the Facebook page
https://www.facebook.com/rebeccaforwa/videos/909491089512942/
I have just tested this video link and put it in my chatbot. I was able to play the video on facebook messenger.
Here is the screenshot:
Let me check it from your account in the meeting.
I have checked this on your account on Ask Kibo Page as well. There is wrong URL added in for this message block. The URL which is added is of a facebook live video. The live video URL is not supported by Facebook Media Component to play inside Messenger. They will always go as card.
Please see the screenshot:
This is the URL that is added inside the bot: https://www.facebook.com/watch/live/?v=909491089512942
It is different from the above URL that is in previous comment.
https://www.facebook.com/rebeccaforwa/videos/909491089512942/
I have given the correct URL in the bot now. You can test the bot. It shows the playable video as shown in following screenshot:
Media component supports following facebook video URL types, of videos which are already uploaded to page and not running as live stream.
Supported Video URLs
Source: https://developers.facebook.com/docs/messenger-platform/send-messages/template/media/
I have updated the user guide and put this information that we should not copy paste live video URLs and have given the format of supported URL in user guide.
@sojharo Please communicate this to team members.
Yes, it was communicated to team members as well.
In this task, we will create an endpoint to handle attachment url. It should be able to do the following:
For further info please refer to design document: https://docs.google.com/document/d/12-4bLH4ZE8dM12_uxT74q8opmkPpFUEXY_ZuQk-_MEs/edit#