Skip to content

Facebook_GoLive_ReturnStreamURL

function

Delphi
function Facebook_GoLive_ReturnStreamURL (EndPointURL: string; Title: string; Description: string; Status: string; AccessToken: string; caBundlePath: string): string;
C++Builder
System::UnicodeString __fastcall Facebook_GoLive_ReturnStreamURL(System::UnicodeString EndPointURL, System::UnicodeString Title, System::UnicodeString Description, System::UnicodeString Status, System::UnicodeString AccessToken, System::UnicodeString caBundlePath);
C#
public string Facebook_GoLive_ReturnStreamURL(string EndPointURL, string Title, string Description, string Status, string AccessToken, string caBundlePath);
VB.NET
Public Function Facebook_GoLive_ReturnStreamURL(EndPointURL As String, Title As String, Description As String, Status As String, AccessToken As String, caBundlePath As String) As String
C++/Qt
wchar_t * Facebook_GoLive_ReturnStreamURL (wchar_t *EndPointURL, wchar_t *Title, wchar_t *Description, wchar_t *Status, wchar_t *AccessToken, wchar_t *caBundlePath);

Returns the RTMP URL of a Facebook endpoint, to pass it to the Multipurpose Encoder for Facebook live streaming.

C# sample code:

string strEndPointURL, strAccessToken, strRTMPURL;
strEndPointURL = "https://graph.facebook.com/v23.0/YOUR_PAGE_ID/live_videos";
strAccessToken = "YOUR_PAGE_ACCESS_TOKEN";
strRTMPURL = VideoGrabber.Facebook_GoLive_ReturnStreamURL(
    strEndPointURL,
    "fb streaming test",
    "my description",
    "LIVE_NOW",
    strAccessToken,
    ""
);

Delphi sample code:

procedure TestFacebookGoLive;
var
  strEndPointURL, strAccessToken, strRTMPURL: string;
begin
  strEndPointURL := 'https://graph.facebook.com/v23.0/YOUR_PAGE_ID/live_videos';
  strAccessToken := 'YOUR_PAGE_ACCESS_TOKEN';
  strRTMPURL := VideoGrabber.Facebook_GoLive_ReturnStreamURL(strEndPointURL, 'fb streaming test', 'my description', 'LIVE_NOW', strAccessToken, '');
  if copy (strRTMPURL, 1, 5) <> 'ERROR' then
  begin
    showmessage(strRTMPURL);
  end;
end;