Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Sending Message problem #212

Closed
emiliobasualdo opened this issue Sep 23, 2015 · 2 comments
Closed

Sending Message problem #212

emiliobasualdo opened this issue Sep 23, 2015 · 2 comments

Comments

@emiliobasualdo
Copy link
Contributor

Each time a friend is added I want to send a message to him.
This is the code I'm running:

$snapchat->sendMessage($FriendsToAdd, "text");

Where $FiendsToAdd is an array.

this is, each time I run the code I get the following error:

 PHP Notice:  Undefined property: stdClass::$NameofTheAccount in... the line 
$seq_num = $convoInfo[0][$to]->conversation_state->user_sequences->$name;

of the SendMessage function.

I have googled it, but as this a non general problem I found no fix.
Is any one else having this problem?
What do you think It might be causing it?

@mgp25 mgp25 closed this as completed in 4c85707 Sep 23, 2015
@mgp25
Copy link
Owner

mgp25 commented Sep 23, 2015

@LanchaBasualdo it's working perfectly. Please, next time quote your code, its easier for us to read it.

Remember that you can only send messages to people already added and accepted by the user.

@emiliobasualdo
Copy link
Contributor Author

Ok, do you have any idea what might be causing it?

On 23/9/2015, at 4:24, mgp25 [email protected] wrote:

@LanchaBasualdo it's working perfectly. Please, next time quote your code, its easier for us to read it.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants