Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile picture #534

Closed
dkasipovic-zz opened this issue Nov 27, 2013 · 7 comments
Closed

Profile picture #534

dkasipovic-zz opened this issue Nov 27, 2013 · 7 comments

Comments

@dkasipovic-zz
Copy link

Hello,

First of all I must say that this is great piece of programming, and I am using it extensively for request/respond with our users, and it works really fast.

However, first I was unable to change my status (I wanted it to correspond to state of my server), but I figured that it was because I have not synced contacs. After I synced contacts, status changed.

But, I am still unable to change my profile picture (I wanted it to represent my logo)? Are there any special steps I need to do?

Also, what do you recommend, how often should I sync contacts?

Thanks in advance

@shirioko
Copy link
Contributor

shirioko commented Dec 2, 2013

Can you inbox me the picture so I can figure out what's wrong?

@dkasipovic-zz
Copy link
Author

Inbox the picture that I am trying to set?

If it helps, same picture is successfuly sent over WhatsApp, it just wont
set it as profile.

On Monday, December 2, 2013, Max Kovaljov wrote:

Can you inbox me the picture so I can figure out what's wrong?


Reply to this email directly or view it on GitHubhttps://github.com//issues/534#issuecomment-29605600
.


Damir Kasipović
email: dkasipovic@gmail.comhttps://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&to=dkasipovic@gmail.com
mob: +387 (0)65 979 949

dkasipovic

@shirioko
Copy link
Contributor

shirioko commented Dec 2, 2013

What is the response node you get from WhatsApp after you call sendSetProfilePicture?

The picture should be square and not more then 640x640, but that should be automatically handled by the code:
https://github.com/venomous0x/WhatsAPI/blob/master/src/php/func.php#L32

@dkasipovic-zz
Copy link
Author

The smaller version gets created automatically, and it works ok. It also
returns tag, but the image does not get set.

File is attached (this is the file created by script, but I think it is the
relevant one because thats the one sent to server).

EDIT: I should have realised that I cannot attach it here. I am sending it to you right now.

On Monday, December 2, 2013, Max Kovaljov wrote:

What is the response node you get from WhatsApp after you call
sendSetProfilePicture?

The picture should be square and not more then 640x640, but that should be
handled by the code:
https://github.com/venomous0x/WhatsAPI/blob/master/src/php/func.php#L32


Reply to this email directly or view it on GitHubhttps://github.com//issues/534#issuecomment-29607754
.


Damir Kasipović
email: dkasipovic@gmail.comhttps://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&to=dkasipovic@gmail.com
mob: +387 (0)65 979 949

dkasipovic

@shirioko
Copy link
Contributor

shirioko commented Dec 2, 2013

Download the latest code and try again. I can set your profile picture just fine.

@dkasipovic-zz
Copy link
Author

Thank you,

It works as it should. Best regards.

@teleavtomatika
Copy link

does any body know which size must be a small logo?

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

No branches or pull requests

3 participants