Skip to content

Facebook_GoLive_ReturnStreamURL

method

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);

Used to obtain the RTMP URL of a Facebook endpoint, in order 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/64572161632085/live_videos";

strAccessToken = "EAALucaCaoyABPAyE9rl4agr5hZB6YjwVxUS9bVg2hCcR089kiStO1A10smuVFxZAZAyspzW7Uh6MlWZCocsv7pYy2AE4tZCnLK4iVcAcYkjOHHWNUD5omifalyMeL8ZBA0qm53TlsnDmGjVTtlpiZBMyx3ggHZBKkuuZCDs9TNN9IlUp8z5nWAoNFsZCJq8pH8wvBGUDfFOV4y18ZBS4C5CZC7lUrhlaogWB8XS1xAtZC3WDJ2t4efsuurGeZCRQo3tLYZD";

// Assuming you have a method similar to the helphi function:

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/64572161632085/live_videos'; strAccessToken := 'EAALucaCaoyABPAyE9rl4agr5hZB6YjwVxUS9bVg2hCcR089kiStO1A10smuVFxZAZAyspzW7Uh6MlWZCocsv7pYy2AE4tZCnLK4iVcAcYkjOHHWNUD5omifalyMeL8ZBA0qm53TlsnDmGjVTtlpiZBMyx3ggHZBKkuuZCDs9TNN9IlUp8z5nWAoNFsZCJq8pH8wvBGUDfFOV4y18ZBS4C5CZC7lUrhlaogWB8XS1xAtZC3WDJ2t4efsuurGeZCRQo3tLYZD'; strRTMPURL := VideoGrabber.Facebook_GoLive_ReturnStreamURL(strEndPointURL, 'fb streaming test', 'my description', 'LIVE_NOW', strAccessToken, ''); if copy (strRTMPURL, 1, 5) <> 'ERROR' thenbegin showmessage(strRTMPURL); end; end; end;