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

Unable to pass data-media image attribute for share on twitter #15

Open
Ranga507 opened this issue Jan 4, 2021 · 0 comments
Open

Unable to pass data-media image attribute for share on twitter #15

Ranga507 opened this issue Jan 4, 2021 · 0 comments

Comments

@Ranga507
Copy link

Ranga507 commented Jan 4, 2021

Hi Guys,
I've not found option for sending data media attribute of an image for share on twitter request url.
Currently, able to use only title, via, and url only. Unable to use data-media for image url

  1.          twitter: {
                 url: 'https://twitter.com/share?url={{url}}&via={{via}}&text={{description}}',
                 popup: {
                     width: 685,
                     height: 500
                 }
             },
    

I think we need to update code in js file

  1. Also we need to change the twitter share url as per the latest twitter documentation in js file

           https://twitter.com/intent/tweet is constant part. ?text= is what text you want. &url= is URL you'll share. &via= is optional associated account to mention. &original_referer= is same as &url= in most cases
    
  2. Need support for data-media parameter for sending image url

Will you please help me

Thanks in Advance
Ranga

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