我可以从guzzle响应中检索cookie并将其设置为用户的浏览器吗?

Is it possible to realize such flow:

  1. User puts login and password into form on my site and submits it
  2. My server grabs data and uses Guzzle or another tool to make a request and proceed with authentication some site (for example facebook)
  3. Facebook sends back cookies back to guzzle, which will contain some token(s) which will be used further.
  4. Server sets cookies for the user. Next time user would like to go on facebook - he will be logged in (using grabbed earlier cookies)

I am using PHP and Guzzle on server, but it does not quite matter. As I guess, it is not possible, because we should set cookies for another domain, which is not secure. But, I haven't found any alike topics, so I must be sure.

Thanks!