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

Sending pictures with Talk #117

Open
visualight opened this issue Mar 30, 2018 · 2 comments
Open

Sending pictures with Talk #117

visualight opened this issue Mar 30, 2018 · 2 comments

Comments

@visualight
Copy link

Hello,

I would like to know if there is a method to send an image via Chat Talk?
A bit like Facebook allows?
What should I do ... do you have a demo to suggest?

Thank you

@cfpinto
Copy link
Collaborator

cfpinto commented Nov 1, 2018

Hi @visualight oembed support was added today to dev-master.
Follow these instructions for upload support:

  • require dev-master with composer
  • create your own upload routines to store the file
  • attach the file url to the message
  • create an oembed endpoint to return information and the html oembed block. Youtube oembed is a good example
  • enable oembed from the talk config file (You might need to republish talk config)
  • Print the message in your blade file using the method toHtmlString() {{$message->toHtmlString}}

And it should work

@visualight
Copy link
Author

Hi @cfpinto !
Hi @nahid !

I have a question because I can't quite understand the working principle of oembed. If I return a response from my server in json (oembed structure), will laravel talk integrate the file with a preview or will it simply display a clickable link? The idea is that people can download the file and save it locally on their computer. Can you tell me more about how oembed talk works?

It would be good to make a small video demo so that we can understand how the oembed works @nahid ;-)

Thanks

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants