abhinavdahiya / go-messenger-bot

Golang bindings for the Messenger Bot API
https://godoc.org/github.com/abhinavdahiya/go-messenger-bot
MIT License
52 stars 10 forks source link

Example code doesn't compile assignment count mismatch: 2 = 1 #1

Closed alanef closed 8 years ago

alanef commented 8 years ago

example code examines err on NewBotAPI

but has no error return

func NewBotAPI(token string, vtoken string) *BotAPI {

is it still work in progress or have you got the example operational?

abhinavdahiya commented 8 years ago

Hey @alanef The work is still in progress, I'm testing this myself :) But i have my personal try bot at https://github.com/abhinavdahiya/go-ad-bot using this lib, which seems to be working

If you could give me details on the error, I would love to help.

alanef commented 8 years ago

Hi @abhinavdahiya

I see you sorted the example.

I now have it working.

The issue I had was when testing as page admin, no 'text' element was being seen.

However when I created a 'tester' on a separate Facebook account the 'text' message got passed.

This isn't an issue with your library (I could see the same issue in my basic test code) but a Facebook issue.

My bot is now working.

abhinavdahiya commented 8 years ago

@alanef Great