gave92 / fbchat-sharp

Facebook Messenger client library for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API can not run in Window Form App (C#)

dante1989 opened this issue · comments

When i use the API on Window Console. It work well
But when i use API on Window Form. The application is crash and can not close app in normal way.
This is Project i have done: https://drive.google.com/file/d/1G47jJayMH-I-xTOuZ01aZSsY1Or3RnDx/view?usp=sharing
Could you help me to fix that problem or update API?
So thank you if sending me the fixed project

This does not seem to be an issue with the library.
Just do this in Form.cs

private async void button1_Click(object sender, EventArgs e)
        {
            await examples.Basic_Usage.Run("email@gmail.com", "password");
        }

Thank you so much. It work well :D