-3

For inviting friends to a group I use below code

Dim fb = New FacebookClient (TockenAccess) 
Dim parameters As Object = New ExpandoObject () 
parameters.member = "1000048247037551" 
Await fb.PostTaskAsync ("/ 1387586938758287 / members" parameters)

but they return the error.

An exception of type 'Facebook.FacebookOAuthException' occurred in mscorlib.dll but was not handled in user code

Additional information: (OAuthException - #3) (#3) Unknown method

error message : {"(OAuthException - #3) (#3) Unknown method"}

Vogel612
  • 5,620
  • 5
  • 48
  • 73
Anziz
  • 1
  • 4

1 Answers1

1

You mustn't place spaces between the slashes and the group-id token.

Try using following code:

Dim fb = New FacebookClient (TockenAccess) //this should spell TokenAccess btw.
Dim parameters As Object = new ExpandoObject ()
parameters.member = "1000048247037551"
Await fb.PostTaskAsync ("/1387586938758287/members" parameters)

Read more in the official group member api docs

Vogel612
  • 5,620
  • 5
  • 48
  • 73