Public Live streaming on Facebook- Android

91 views Asked by At

I have created an app in which app users can do live streaming on their Facebook account, things are working well but when live streaming is on Privacy is being set to {Private automatically}.

Here is my code:

val request = GraphRequest.newPostRequest(
        AccessToken.getCurrentAccessToken(),
        "/$userId/live_videos",
        JSONObject("{\"title\":\"Test\",\"description\":\"This is the live video for today.\", \"value\":\"EVERYONE\"}")
    ) {
        val url = it.jsonObject.get("secure_stream_url")
        val id = it.jsonObject.get("id")
        startActivity(intent)
        finish()
    }
0

There are 0 answers