我创建了一个应用程序,其中应用程序用户可以在他们的 Facebook 帐户上进行直播,一切正常,但是当直播开启时Privacy
被设置为{Private automatically}
.
这是我的代码:
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()
}