Click or drag to resize
IKomfoProviderAddFacebookIdsToCustomAudienceAsync Method
Adds Facebook IDs to the custom audience asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Task<int> AddFacebookIdsToCustomAudienceAsync(
	string accessToken,
	string customAudienceId,
	IEnumerable<string> facebookIds,
	IEnumerable<string> facebookAppIds
)

Parameters

accessToken
Type: SystemString
The access token.
customAudienceId
Type: SystemString
The custom audience identifier.
facebookIds
Type: System.Collections.GenericIEnumerableString
The Facebook IDs.
facebookAppIds
Type: System.Collections.GenericIEnumerableString
The Facebook application IDs (for determining the scope of facebookIds).

Return Value

Type: TaskInt32
The number of Facebook IDs requested to be added to the custom audience.
Examples
var entriesReceived = await komfoProvider.AddFacebookIdsToCustomAudienceAsync(
  "<your_access_token>", customAudienceId, new[] { "145452788993", "882937633", "9921392364" }, new[] { "9923273766736" });

 Console.WriteLine("Entries received: {0}", entriesReceived);
See Also