8

How can I share a post on Instagram with PHP?

My code here:

<a class="fb-share" href="https://www.instagram.com/sharer.php?u={{url()->current()}}"><i class="social_facebook"></i> Share</a>

I am using Laravel.

1
  • 2
    @rafe no, Instagram doesn't want this feature, so they don't have a way to do this.
    – jminkler
    Feb 16, 2022 at 22:16

1 Answer 1

26

Instagram currently doesn’t allow you to share a photo or video from another website – you can only upload photos/videos directly from your mobile device. Since there isn't any sharing mechanism, there isn't any way for us to include a button that will share your content to Instagram.

You can if you have a business account, but there are restrictions. See Content Publishing.

But, this also isn't a share button.

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.