Search code examples
gitgithubmarkdownpreview

how to add instagram preview url on README.md in github?


I tried adding instagram preview URL like Youtube preview URL in readme.md in github by this answer

> https://img.youtube.com/vi/<VIDEO ID>/0.jpg

[![pygame](https://img.youtube.com/vi/FfWpgLFMI7w/0.jpg)](http://www.youtube.com/watch?v=FfWpgLFMI7w"pygame")

It works for youtube video but what about instagram and facebook videos??

The youtube preview URL works but the instagram preview doesn't work, i tried everthing,can anyone please help me..

[![pygame](http://img.instagram.com/p/B_LXgD0Hzgx/0.jpg)]((https://www.instagram.com/p/B_LXgD0Hzgx/)

click to view the image


Solution

  • I think this is more about the Instagram feature rather than a problem of Markdown/GitHub/Git. You can use the Instagram API for such purposes.I hope that solves your problem. I have not looked into detail but I think this might solve your problem.

    From what I have inferred you may do: GET /{ig-user-id}/media to get the media data of a user (this does not include IGTV videos).

    A tip is to search for an API of the service you are aiming for. For instance, popular services like LinkedIn, Twitter, GoogleMaps, YouTube and StackOverFlow have their own APIs which serve various purposes and can be tailored specially as per your needs.

    I hope this solves your problem!

    Best