示例#1
0
 public static async Task <object> WelcomeMessage(this FacebookClient client, ThreadSettings threadSettings)
 {
     return(await client.PostTaskAsync($"me/thread_settings", threadSettings));
 }
示例#2
0
 public static async Task <UserProfile> UserProfile(this FacebookClient client, string userId)
 {
     return(await client.GetTaskAsync <UserProfile>($"{userId}?fields=first_name,last_name,profile_pic"));
 }
示例#3
0
 public static async Task <object> SendMessage(this FacebookClient client, Send send)
 {
     return(await client.PostTaskAsync("me/messages", send));
 }
示例#4
0
 public static async Task <object> DeleteThreadSettings(this FacebookClient client, IThreadSettings threadSettings)
 {
     return(await client.DeleteTaskAsync($"me/thread_settings", threadSettings, new System.Threading.CancellationToken()));
 }
 public static UserProfile UserProfile(this FacebookClient client, string userId)
 {
     return(client.Get <UserProfile>($"{userId}?fields=first_name,last_name,profile_pic"));
 }
 public static object WelcomeMessage(this FacebookClient client, string pageId, ThreadSettings threadSettings)
 {
     return(client.Post($"{pageId}/thread_settings", threadSettings));
 }
 public static object SendMessage(this FacebookClient client, Send send)
 {
     return(client.Post("me/messages", send));
 }