How to download facebook videos by using 'youtube-dl' in linux?












10














I am unable to download Facebook video using youtube-dl. The following error occurs during downloading:



$ youtube-dl https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater
[1] 5101
[2] 5102
[3] 5103
theater: command not found
[2]- Done set=vb.107925785982
[3]+ Done type=2
[2]- Done set=vb.107925785982
[3]+ Done type=2
$ [generic] video: Requesting header

$ WARNING: Falling back on generic information extractor.
[generic] video: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

[1]+ Exit 1 youtube-dl
https://www.facebook.com/video.php?v=10152588878600983









share|improve this question





























    10














    I am unable to download Facebook video using youtube-dl. The following error occurs during downloading:



    $ youtube-dl https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater
    [1] 5101
    [2] 5102
    [3] 5103
    theater: command not found
    [2]- Done set=vb.107925785982
    [3]+ Done type=2
    [2]- Done set=vb.107925785982
    [3]+ Done type=2
    $ [generic] video: Requesting header

    $ WARNING: Falling back on generic information extractor.
    [generic] video: Downloading webpage
    ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

    [1]+ Exit 1 youtube-dl
    https://www.facebook.com/video.php?v=10152588878600983









    share|improve this question



























      10












      10








      10


      1





      I am unable to download Facebook video using youtube-dl. The following error occurs during downloading:



      $ youtube-dl https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater
      [1] 5101
      [2] 5102
      [3] 5103
      theater: command not found
      [2]- Done set=vb.107925785982
      [3]+ Done type=2
      [2]- Done set=vb.107925785982
      [3]+ Done type=2
      $ [generic] video: Requesting header

      $ WARNING: Falling back on generic information extractor.
      [generic] video: Downloading webpage
      ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

      [1]+ Exit 1 youtube-dl
      https://www.facebook.com/video.php?v=10152588878600983









      share|improve this question















      I am unable to download Facebook video using youtube-dl. The following error occurs during downloading:



      $ youtube-dl https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater
      [1] 5101
      [2] 5102
      [3] 5103
      theater: command not found
      [2]- Done set=vb.107925785982
      [3]+ Done type=2
      [2]- Done set=vb.107925785982
      [3]+ Done type=2
      $ [generic] video: Requesting header

      $ WARNING: Falling back on generic information extractor.
      [generic] video: Downloading webpage
      ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

      [1]+ Exit 1 youtube-dl
      https://www.facebook.com/video.php?v=10152588878600983






      command-line youtube-dl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 28 '17 at 4:26









      muru

      1




      1










      asked May 22 '15 at 19:52









      Madhav Nikam

      1,47982445




      1,47982445






















          5 Answers
          5






          active

          oldest

          votes


















          9














          When using youtube-dl try to clean up the URL you use. For example, the following URL will work. Thanks for the video ^_~.




          • https://www.facebook.com/video.php?v=10152588878600983


          How did you install youtube-dl? If you installed it through apt, I would recommend the following:



          sudo apt-get remove youtube-dl
          sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
          sudo pip install youtube-dl


          pip seems to have a more up-to-date version.



          Some characters need to be escaped to prevent issues. You can single-quote your URL to help prevent these issues:




          • youtube-dl 'https://domain.tld/path/file.ext'






          share|improve this answer























          • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:33










          • this is also not work.
            – Madhav Nikam
            May 22 '15 at 20:33










          • You're not using the URL I gave you. Put that HTTPS in there!
            – earthmeLon
            May 22 '15 at 20:37










          • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:41










          • i think "https" is not display in comment box. but i put your link as it is.
            – Madhav Nikam
            May 22 '15 at 20:42



















          8














          You have to escape ampersands (&) or put the whole URL in quotes since ampersand is one of the special characters that's interpreted by your shell and prevents you from passing the whole URL to youtube-dl. More on this. So just putting it in single quotes will suffice:



          youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'





          share|improve this answer























          • $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
            – Madhav Nikam
            May 23 '15 at 17:26












          • @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
            – David Foerster
            May 24 '15 at 10:00





















          1















          1. right click on the video > click on "show the video URL" > copy the URL there come (NOT the URL of the facebook page).



          2. Then, paste the URL copied on the terminal next to 'youtube-dl'



            Ex.:
            youtube-dl https://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/








          share|improve this answer





























            1














            I try download these video through wine+Youtube-dl and its working.
            I my case I was install YouTube-dl by Ubuntu software center. Now my software center is not work. Therefore I am unable to Update YouTube-dl through Terminal. Updated version of YouTube-dl may solve that issue.
            wine+youtube-dlStep1:- first install and configure wine.
            Step2:- download youtube-dl.exe 2016.01.15
            step3:- copy youtube-dl.exe in to /home/youru_username/.wine/drive_c/folder_for_youtube-dl
            enter image description herestep4:- open cmd.exe from /home/madhavnikam/.wine/drive_c/windows/system32
            enter image description here
            Note:- youtube-dl is a folder in which youtube-dl.exe file is copied.
            step5:- type cd in cmd and set path like c:youtube-dl
            enter image description here
            More Info
            1)How to install Wine in Ubuntu.
            2)youtube-dl exe version download and copy to C_drive folder of .wine folder.






            share|improve this answer























            • Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
              – Madhav Nikam
              Jun 1 '15 at 4:32












            • @DavidFoerster thanks. I remember your suggestions for future.
              – Madhav Nikam
              Jan 3 '16 at 13:40










            • For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
              – David Foerster
              Jan 3 '16 at 17:07












            • @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
              – Madhav Nikam
              Jan 4 '16 at 13:14










            • There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
              – David Foerster
              Jan 4 '16 at 19:32





















            0














            This worked in my Linux Mint 18.3-cinammon maybe it could work in yours.You can download video in facebook using youtube-dl by appending Facebook username and password as shown below:



            youtube-dl <url> --username <YOUR_USERNAME> --password <YOUR_PASSWORD>


            I hope this help. Thank you.






            share|improve this answer























            • I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
              – Natim
              Jul 20 at 12:59











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f627133%2fhow-to-download-facebook-videos-by-using-youtube-dl-in-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            9














            When using youtube-dl try to clean up the URL you use. For example, the following URL will work. Thanks for the video ^_~.




            • https://www.facebook.com/video.php?v=10152588878600983


            How did you install youtube-dl? If you installed it through apt, I would recommend the following:



            sudo apt-get remove youtube-dl
            sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
            sudo pip install youtube-dl


            pip seems to have a more up-to-date version.



            Some characters need to be escaped to prevent issues. You can single-quote your URL to help prevent these issues:




            • youtube-dl 'https://domain.tld/path/file.ext'






            share|improve this answer























            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:33










            • this is also not work.
              – Madhav Nikam
              May 22 '15 at 20:33










            • You're not using the URL I gave you. Put that HTTPS in there!
              – earthmeLon
              May 22 '15 at 20:37










            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:41










            • i think "https" is not display in comment box. but i put your link as it is.
              – Madhav Nikam
              May 22 '15 at 20:42
















            9














            When using youtube-dl try to clean up the URL you use. For example, the following URL will work. Thanks for the video ^_~.




            • https://www.facebook.com/video.php?v=10152588878600983


            How did you install youtube-dl? If you installed it through apt, I would recommend the following:



            sudo apt-get remove youtube-dl
            sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
            sudo pip install youtube-dl


            pip seems to have a more up-to-date version.



            Some characters need to be escaped to prevent issues. You can single-quote your URL to help prevent these issues:




            • youtube-dl 'https://domain.tld/path/file.ext'






            share|improve this answer























            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:33










            • this is also not work.
              – Madhav Nikam
              May 22 '15 at 20:33










            • You're not using the URL I gave you. Put that HTTPS in there!
              – earthmeLon
              May 22 '15 at 20:37










            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:41










            • i think "https" is not display in comment box. but i put your link as it is.
              – Madhav Nikam
              May 22 '15 at 20:42














            9












            9








            9






            When using youtube-dl try to clean up the URL you use. For example, the following URL will work. Thanks for the video ^_~.




            • https://www.facebook.com/video.php?v=10152588878600983


            How did you install youtube-dl? If you installed it through apt, I would recommend the following:



            sudo apt-get remove youtube-dl
            sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
            sudo pip install youtube-dl


            pip seems to have a more up-to-date version.



            Some characters need to be escaped to prevent issues. You can single-quote your URL to help prevent these issues:




            • youtube-dl 'https://domain.tld/path/file.ext'






            share|improve this answer














            When using youtube-dl try to clean up the URL you use. For example, the following URL will work. Thanks for the video ^_~.




            • https://www.facebook.com/video.php?v=10152588878600983


            How did you install youtube-dl? If you installed it through apt, I would recommend the following:



            sudo apt-get remove youtube-dl
            sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
            sudo pip install youtube-dl


            pip seems to have a more up-to-date version.



            Some characters need to be escaped to prevent issues. You can single-quote your URL to help prevent these issues:




            • youtube-dl 'https://domain.tld/path/file.ext'







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 14 at 17:00

























            answered May 22 '15 at 20:13









            earthmeLon

            6,2341648




            6,2341648












            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:33










            • this is also not work.
              – Madhav Nikam
              May 22 '15 at 20:33










            • You're not using the URL I gave you. Put that HTTPS in there!
              – earthmeLon
              May 22 '15 at 20:37










            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:41










            • i think "https" is not display in comment box. but i put your link as it is.
              – Madhav Nikam
              May 22 '15 at 20:42


















            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:33










            • this is also not work.
              – Madhav Nikam
              May 22 '15 at 20:33










            • You're not using the URL I gave you. Put that HTTPS in there!
              – earthmeLon
              May 22 '15 at 20:37










            • mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
              – Madhav Nikam
              May 22 '15 at 20:41










            • i think "https" is not display in comment box. but i put your link as it is.
              – Madhav Nikam
              May 22 '15 at 20:42
















            mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:33




            mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:33












            this is also not work.
            – Madhav Nikam
            May 22 '15 at 20:33




            this is also not work.
            – Madhav Nikam
            May 22 '15 at 20:33












            You're not using the URL I gave you. Put that HTTPS in there!
            – earthmeLon
            May 22 '15 at 20:37




            You're not using the URL I gave you. Put that HTTPS in there!
            – earthmeLon
            May 22 '15 at 20:37












            mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:41




            mrn@madhavnikam-Aspire-E5-511:~$ youtube-dl facebook.com/video.php?v=10152588878600983 [generic] video: Requesting header WARNING: Falling back on generic information extractor. [generic] video: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> mrn@madhavnikam-Aspire-E5-511:~$
            – Madhav Nikam
            May 22 '15 at 20:41












            i think "https" is not display in comment box. but i put your link as it is.
            – Madhav Nikam
            May 22 '15 at 20:42




            i think "https" is not display in comment box. but i put your link as it is.
            – Madhav Nikam
            May 22 '15 at 20:42













            8














            You have to escape ampersands (&) or put the whole URL in quotes since ampersand is one of the special characters that's interpreted by your shell and prevents you from passing the whole URL to youtube-dl. More on this. So just putting it in single quotes will suffice:



            youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'





            share|improve this answer























            • $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
              – Madhav Nikam
              May 23 '15 at 17:26












            • @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
              – David Foerster
              May 24 '15 at 10:00


















            8














            You have to escape ampersands (&) or put the whole URL in quotes since ampersand is one of the special characters that's interpreted by your shell and prevents you from passing the whole URL to youtube-dl. More on this. So just putting it in single quotes will suffice:



            youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'





            share|improve this answer























            • $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
              – Madhav Nikam
              May 23 '15 at 17:26












            • @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
              – David Foerster
              May 24 '15 at 10:00
















            8












            8








            8






            You have to escape ampersands (&) or put the whole URL in quotes since ampersand is one of the special characters that's interpreted by your shell and prevents you from passing the whole URL to youtube-dl. More on this. So just putting it in single quotes will suffice:



            youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'





            share|improve this answer














            You have to escape ampersands (&) or put the whole URL in quotes since ampersand is one of the special characters that's interpreted by your shell and prevents you from passing the whole URL to youtube-dl. More on this. So just putting it in single quotes will suffice:



            youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 8 '16 at 0:19









            Evan Carroll

            4,674103466




            4,674103466










            answered May 23 '15 at 15:41









            dstftw

            22914




            22914












            • $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
              – Madhav Nikam
              May 23 '15 at 17:26












            • @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
              – David Foerster
              May 24 '15 at 10:00




















            • $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
              – Madhav Nikam
              May 23 '15 at 17:26












            • @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
              – David Foerster
              May 24 '15 at 10:00


















            $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
            – Madhav Nikam
            May 23 '15 at 17:26






            $ youtube-dl "facebook.com/…" [generic] video.php?v=10152588878600983&set=vb: Requesting header WARNING: Falling back on generic information extractor. [generic] video.php?v=10152588878600983&set=vb: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> $
            – Madhav Nikam
            May 23 '15 at 17:26














            @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
            – David Foerster
            May 24 '15 at 10:00






            @MadhavNikam: Please edit your question, if you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
            – David Foerster
            May 24 '15 at 10:00













            1















            1. right click on the video > click on "show the video URL" > copy the URL there come (NOT the URL of the facebook page).



            2. Then, paste the URL copied on the terminal next to 'youtube-dl'



              Ex.:
              youtube-dl https://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/








            share|improve this answer


























              1















              1. right click on the video > click on "show the video URL" > copy the URL there come (NOT the URL of the facebook page).



              2. Then, paste the URL copied on the terminal next to 'youtube-dl'



                Ex.:
                youtube-dl https://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/








              share|improve this answer
























                1












                1








                1







                1. right click on the video > click on "show the video URL" > copy the URL there come (NOT the URL of the facebook page).



                2. Then, paste the URL copied on the terminal next to 'youtube-dl'



                  Ex.:
                  youtube-dl https://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/








                share|improve this answer













                1. right click on the video > click on "show the video URL" > copy the URL there come (NOT the URL of the facebook page).



                2. Then, paste the URL copied on the terminal next to 'youtube-dl'



                  Ex.:
                  youtube-dl https://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 '16 at 10:25









                msrt

                111




                111























                    1














                    I try download these video through wine+Youtube-dl and its working.
                    I my case I was install YouTube-dl by Ubuntu software center. Now my software center is not work. Therefore I am unable to Update YouTube-dl through Terminal. Updated version of YouTube-dl may solve that issue.
                    wine+youtube-dlStep1:- first install and configure wine.
                    Step2:- download youtube-dl.exe 2016.01.15
                    step3:- copy youtube-dl.exe in to /home/youru_username/.wine/drive_c/folder_for_youtube-dl
                    enter image description herestep4:- open cmd.exe from /home/madhavnikam/.wine/drive_c/windows/system32
                    enter image description here
                    Note:- youtube-dl is a folder in which youtube-dl.exe file is copied.
                    step5:- type cd in cmd and set path like c:youtube-dl
                    enter image description here
                    More Info
                    1)How to install Wine in Ubuntu.
                    2)youtube-dl exe version download and copy to C_drive folder of .wine folder.






                    share|improve this answer























                    • Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                      – Madhav Nikam
                      Jun 1 '15 at 4:32












                    • @DavidFoerster thanks. I remember your suggestions for future.
                      – Madhav Nikam
                      Jan 3 '16 at 13:40










                    • For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                      – David Foerster
                      Jan 3 '16 at 17:07












                    • @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                      – Madhav Nikam
                      Jan 4 '16 at 13:14










                    • There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                      – David Foerster
                      Jan 4 '16 at 19:32


















                    1














                    I try download these video through wine+Youtube-dl and its working.
                    I my case I was install YouTube-dl by Ubuntu software center. Now my software center is not work. Therefore I am unable to Update YouTube-dl through Terminal. Updated version of YouTube-dl may solve that issue.
                    wine+youtube-dlStep1:- first install and configure wine.
                    Step2:- download youtube-dl.exe 2016.01.15
                    step3:- copy youtube-dl.exe in to /home/youru_username/.wine/drive_c/folder_for_youtube-dl
                    enter image description herestep4:- open cmd.exe from /home/madhavnikam/.wine/drive_c/windows/system32
                    enter image description here
                    Note:- youtube-dl is a folder in which youtube-dl.exe file is copied.
                    step5:- type cd in cmd and set path like c:youtube-dl
                    enter image description here
                    More Info
                    1)How to install Wine in Ubuntu.
                    2)youtube-dl exe version download and copy to C_drive folder of .wine folder.






                    share|improve this answer























                    • Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                      – Madhav Nikam
                      Jun 1 '15 at 4:32












                    • @DavidFoerster thanks. I remember your suggestions for future.
                      – Madhav Nikam
                      Jan 3 '16 at 13:40










                    • For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                      – David Foerster
                      Jan 3 '16 at 17:07












                    • @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                      – Madhav Nikam
                      Jan 4 '16 at 13:14










                    • There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                      – David Foerster
                      Jan 4 '16 at 19:32
















                    1












                    1








                    1






                    I try download these video through wine+Youtube-dl and its working.
                    I my case I was install YouTube-dl by Ubuntu software center. Now my software center is not work. Therefore I am unable to Update YouTube-dl through Terminal. Updated version of YouTube-dl may solve that issue.
                    wine+youtube-dlStep1:- first install and configure wine.
                    Step2:- download youtube-dl.exe 2016.01.15
                    step3:- copy youtube-dl.exe in to /home/youru_username/.wine/drive_c/folder_for_youtube-dl
                    enter image description herestep4:- open cmd.exe from /home/madhavnikam/.wine/drive_c/windows/system32
                    enter image description here
                    Note:- youtube-dl is a folder in which youtube-dl.exe file is copied.
                    step5:- type cd in cmd and set path like c:youtube-dl
                    enter image description here
                    More Info
                    1)How to install Wine in Ubuntu.
                    2)youtube-dl exe version download and copy to C_drive folder of .wine folder.






                    share|improve this answer














                    I try download these video through wine+Youtube-dl and its working.
                    I my case I was install YouTube-dl by Ubuntu software center. Now my software center is not work. Therefore I am unable to Update YouTube-dl through Terminal. Updated version of YouTube-dl may solve that issue.
                    wine+youtube-dlStep1:- first install and configure wine.
                    Step2:- download youtube-dl.exe 2016.01.15
                    step3:- copy youtube-dl.exe in to /home/youru_username/.wine/drive_c/folder_for_youtube-dl
                    enter image description herestep4:- open cmd.exe from /home/madhavnikam/.wine/drive_c/windows/system32
                    enter image description here
                    Note:- youtube-dl is a folder in which youtube-dl.exe file is copied.
                    step5:- type cd in cmd and set path like c:youtube-dl
                    enter image description here
                    More Info
                    1)How to install Wine in Ubuntu.
                    2)youtube-dl exe version download and copy to C_drive folder of .wine folder.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 13 '17 at 12:24


























                    community wiki





                    4 revs
                    Madhav Nikam













                    • Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                      – Madhav Nikam
                      Jun 1 '15 at 4:32












                    • @DavidFoerster thanks. I remember your suggestions for future.
                      – Madhav Nikam
                      Jan 3 '16 at 13:40










                    • For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                      – David Foerster
                      Jan 3 '16 at 17:07












                    • @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                      – Madhav Nikam
                      Jan 4 '16 at 13:14










                    • There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                      – David Foerster
                      Jan 4 '16 at 19:32




















                    • Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                      – Madhav Nikam
                      Jun 1 '15 at 4:32












                    • @DavidFoerster thanks. I remember your suggestions for future.
                      – Madhav Nikam
                      Jan 3 '16 at 13:40










                    • For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                      – David Foerster
                      Jan 3 '16 at 17:07












                    • @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                      – Madhav Nikam
                      Jan 4 '16 at 13:14










                    • There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                      – David Foerster
                      Jan 4 '16 at 19:32


















                    Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                    – Madhav Nikam
                    Jun 1 '15 at 4:32






                    Above solution is not proper solution but that solution solve my problem. Update your Youtube-dl through Terminal or Ubuntu software center it is better solution if your software center is working
                    – Madhav Nikam
                    Jun 1 '15 at 4:32














                    @DavidFoerster thanks. I remember your suggestions for future.
                    – Madhav Nikam
                    Jan 3 '16 at 13:40




                    @DavidFoerster thanks. I remember your suggestions for future.
                    – Madhav Nikam
                    Jan 3 '16 at 13:40












                    For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                    – David Foerster
                    Jan 3 '16 at 17:07






                    For everybody else: youtube-dl can be run natively in Ubuntu/Linux at least just as easily. No need to involve Wine.
                    – David Foerster
                    Jan 3 '16 at 17:07














                    @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                    – Madhav Nikam
                    Jan 4 '16 at 13:14




                    @DavidFoerster this answer just give for another way if Ubuntu software center is no working or sudo privilege is not available. I agree youtube-dl is natively run in Linux.
                    – Madhav Nikam
                    Jan 4 '16 at 13:14












                    There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                    – David Foerster
                    Jan 4 '16 at 19:32






                    There is a native version of youtube-dl available, that doesn't require super-user privileges or package management.
                    – David Foerster
                    Jan 4 '16 at 19:32













                    0














                    This worked in my Linux Mint 18.3-cinammon maybe it could work in yours.You can download video in facebook using youtube-dl by appending Facebook username and password as shown below:



                    youtube-dl <url> --username <YOUR_USERNAME> --password <YOUR_PASSWORD>


                    I hope this help. Thank you.






                    share|improve this answer























                    • I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                      – Natim
                      Jul 20 at 12:59
















                    0














                    This worked in my Linux Mint 18.3-cinammon maybe it could work in yours.You can download video in facebook using youtube-dl by appending Facebook username and password as shown below:



                    youtube-dl <url> --username <YOUR_USERNAME> --password <YOUR_PASSWORD>


                    I hope this help. Thank you.






                    share|improve this answer























                    • I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                      – Natim
                      Jul 20 at 12:59














                    0












                    0








                    0






                    This worked in my Linux Mint 18.3-cinammon maybe it could work in yours.You can download video in facebook using youtube-dl by appending Facebook username and password as shown below:



                    youtube-dl <url> --username <YOUR_USERNAME> --password <YOUR_PASSWORD>


                    I hope this help. Thank you.






                    share|improve this answer














                    This worked in my Linux Mint 18.3-cinammon maybe it could work in yours.You can download video in facebook using youtube-dl by appending Facebook username and password as shown below:



                    youtube-dl <url> --username <YOUR_USERNAME> --password <YOUR_PASSWORD>


                    I hope this help. Thank you.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 27 at 14:26









                    Eric Carvalho

                    41.2k17113144




                    41.2k17113144










                    answered Apr 27 at 13:15









                    k mak

                    1




                    1












                    • I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                      – Natim
                      Jul 20 at 12:59


















                    • I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                      – Natim
                      Jul 20 at 12:59
















                    I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                    – Natim
                    Jul 20 at 12:59




                    I tried, if you have 2FA enable it doesn't work. I also tried with a new account and I get Cannot Parse Data.
                    – Natim
                    Jul 20 at 12:59


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f627133%2fhow-to-download-facebook-videos-by-using-youtube-dl-in-linux%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido