Send https requests from CloudCode

Hi,
I am trying to use Cloud Code to get a long-lived token from Facebook but I am not sure if Unity CloudCode can do that.
Here is the way that FB suggests from the backend, but I am not sure how to use it.

curl -i -X GET "https://graph.facebook.com/{graph-api-version}/oauth/access_token? 
    grant_type=fb_exchange_token&         
    client_id={app-id}&
    client_secret={app-secret}&
    fb_exchange_token={your-access-token}"

Thanks

Hi there, currently this is not yet possible as we don’t yet allow external HTTP calls. This will be worked on in the coming weeks

1 Like

Oh ok. That’s to bad, but at least it is on the todo list.
Thanks for the swift reply :wink:

1 Like

You should now be able to make external HTTP calls from Cloud Code

Official - External Services access from Cloud Code - Unity Forum