I'm trying to build a Facebook Windows Desktop Application.
Got a Keyboard with an LCD and want to facebook chat messages on it as well as reply to them.
I've been Googling for days but mostly finding outdated components and examples, or examples and code that only apply to Web development instead of Desktop development.
So, if anyone has some experience with this, input would be most welcome.
So far, I got as far as getting a connection up with Facebook, now i want to step forward, but i seem to be hitting a brick wall..
I'm using NuGet module "Facebook C# SDK" Version 6.8.0 (latest):
facebook-csharp-sdk: Fa... - GitHub[
^]
Here's my Class:
Imports Facebook
Imports System.Dynamic
Public Class Connector
Public Shared Sub Main()
test
End Sub
Public Shared sub test()
Dim LoginForm As New frmLogIn("ApplicationID", "user_about_me")
If (Not LoginForm.ShowDialog = System.Windows.Forms.DialogResult.OK) Then _
Exit sub
Dim UserToken = LoginForm.FacebookOAuthResult.AccessToken
Dim Client As New FacebookClient(UserToken)
Dim Result As Object = Client.Get("me")
MsgBox(Result.ToString)
Dim query = string.Format("SELECT uid, name, pic_square FROM user WHERE uid = me()")
Dim Parameters As Object = New ExpandoObject
Parameters.q = query
Result = Client.Get("fql", Parameters)
MsgBox(Result.ToString)
End sub
End Class
But, at least i can get Connected.. Some help on how get the following would be absolutely awesome:
- Get Friends List (UserID, Username)
- New Message Notification Event (UserID, Username, SentMessageToMeContainingX)
- Send Message to UserID, MessageToSend
Please, don't just refer to Documentation pages, as i have checked them, and they haven't been of much help..
For instance
https://developers.facebook.com/docs/[
^] doesn't have documentation for Desktop development, mostly Mobile iOS, Android and Webdevelopment. They don't even have an SDK for Desktop development as they are referring to third party tools.
Also the 3d Party SDK Development hasn't been of much help, as these are also all Web Oriented:
Facebook SDK for .NET[
^]
So, if anyone has any insight on how to get data from an open connection, please shine some light, as google is turning out to be a dark hole