Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Getting Conversations always 0 #123

Closed
alejoloaiza opened this issue Jun 1, 2018 · 9 comments
Closed

Getting Conversations always 0 #123

alejoloaiza opened this issue Jun 1, 2018 · 9 comments

Comments

@alejoloaiza
Copy link
Contributor

Hello, im running the examples and after insta.Inbox.Sync() im always getting len(inst.Inbox.Conversations) as 0, any idea what could be happening? im having lot of conversations.

@dgrr
Copy link
Contributor

dgrr commented Jun 1, 2018

Okay, I got it. This is the error: Update Your App to Use Direct. We have to update the goinsta version. See #120

We are working on it

@alejoloaiza
Copy link
Contributor Author

Yeah dude that is the error

{"inbox": {}, "megaphone": {"generic_megaphone": {"type": "deprecate_raven_tray", "title": "Update Your App to Use Direct", "message": "Your Instagram app is out of date. Update it now to use Direct.", "dismissible": false, "icon": null, "buttons": [{"text": "Update", "style": "confirm", "url": "https://play.google.com/store/apps/details?id=com.instagram.android"}], "megaphone_version": "v1", "button_layout": "vertical", "action_info": {}, "button_location": "bottom", "uuid": "3fbbdc0625e04e938cc9bb88d82aed2e"}}, "status": "ok"}

@dgrr
Copy link
Contributor

dgrr commented Jun 1, 2018

Yeah, I am trying to fix it right now

@alejoloaiza
Copy link
Contributor Author

Hi @TheMester Changed the constant (goInstaUserAgent) in const.go to what you told me but got another error.

goInstaUserAgent = "Instagram 44.0.0.9.93 Android (25/7.1.2; 320dpi; 720x1280; bq; Aquaris U Plus; tenshi; qcom; es_ES; 107092308)"

but now im getting error in login:
fail: Your version of Instagram is out of date. Please upgrade your app to log in to Instagram. (needs_upgrade)

@dgrr
Copy link
Contributor

dgrr commented Jun 1, 2018

Yes, I know, you can use the another user agent but you must be logged in. Use Export function to export your configuration and import to import your configuration. I recomment you the usage of utils package

@alejoloaiza
Copy link
Contributor Author

ok dude thanks will try that, you are the best

dgrr added a commit that referenced this issue Jun 2, 2018
@dgrr
Copy link
Contributor

dgrr commented Jun 2, 2018

@alejoloaiza I implemented a little patch here 18cbd58

We are working on the new login implementation at https://github.com/ahmdrz/goinsta/tree/alpha

@alejoloaiza
Copy link
Contributor Author

Sweet, thanks @TheMester , I will test it right now.

@dgrr
Copy link
Contributor

dgrr commented Jun 2, 2018

@alejoloaiza New login is working right now. See #120

@dgrr dgrr closed this as completed Jun 2, 2018
ahmdrz added a commit that referenced this issue Mar 21, 2019
* implement UserTaggedFeed for media a used is tagged in

* add test for maxid/mintimestamp for UserTaggedFeed

* new response type for usertaggedfeed (#98)

* change UserTaggedFeed return to new type with int64 next_max_id and extra fields

* change test case

* change int -> int64 for next_max_id

* update GetUserStories

* add story to location feeds

* Update README.md

* Added comments to DirectMessage function

* Updated DirectListResponse

* Adapted cursor requests in GetV2Inbox

* Changed doc.go file

* Fixed errors

* Changed doc.go

* Changed examples import

* Changed goinsta imports

* updatd readme

* Updated doc.go

* Updated utils

* Added Comment.Like and Unlike

* Changed requests

* Added Commends.Add support for Stories (incomplete)

* Fixed error with GET request

* Deleted limit parameter

* Resumed code

* Added pagination for Inbox object

* Added next example

* Updated readme

* fixed typo

* Updated README

* Updated README 2

* Added CookieJar in New function

* Fixed hashtag user error

* Fixed #117

* Changed user-agent

* Added Send function to Converstions

* Added new field for requests

* Added send message example

* Added documentation example

* Returned to last user agent. WHY is 44 version older than 10?

* Added new error type and finished Comments.Add to StoryMedia

* Updated example

* Added Delete function

* Added Like function

* Added example

* Added new urls

* Added V2 parameter to request function

* add SyncLikers function to get media likers

* update

* add urlMediaLikers in const and used in SyncLikers

* Added mutual friends field

* Updated user agent

* Added highligh function

* Added highligh example

* Added highlights command to user

* Made SyncLikers a little private heh

* Restored user-agent

* Added Sync function for highlights

* Add go.mod for use with VGO

* Fixed error with highlights

* add UploadPhoto

* Added NewUser function

* Added field title to story media

* Added documentation

* Changed Download function

* Deleted fmt and change for Join paths xd

* Changed Download function

* Updated info command

* Updated Download functions

* Updated

* Changed readme and doc.go

* Updated readme

* Updated readme

* Added GetBest

* Changed Download function flow execution

* Updated setToItem function

* Fixed CarouselMedia error

* Changed AcquireFeed to GetMedia

* Updated exaples

* Changed Feed parameters

* Modified Sync input parameters

* Created friendship example

* Updated doc

* Updated godoc info

* Updated Account.Feed

* Fixed comment const error

* Added Item processing to GetBest

* Fixed comment retrieving error

* Fixed error

* F********************CK

* Fixed comments pagination error

* New login on testing mode

* Little patch to solve #123

* Updated sync example

* Updated Sync account function

* Deleted unneeded const

* Added insecure mode to proxy

* Implemented new login

* Changed close default value by keep-alive

* Deleted second user agent

* Fixed #120

* Fixed highlights error

* Updated readme

* Create CONTRIBUTING.md

* Deleted CONTRIBUTION

* Create LICENSE

* Updated readme

* Updated readme

* [Add] Other examples

* Added edit function in account update functions

* Added urls

* Changed example args

* Limited item listing

* Fixed edit error

* Added Save function

* Fixed _uid paramter error

* Added more information to error

* [Add] Optional argument to modify query options

* This reverts commit b4cd0fb.

* [Add] Open posibility to change to non ranked content

* [Add] Bool in switch and comment

* [Update] Comment typo error

* [Add] New method to have a way to initiate a new conversation

* [Update] Requested changes

* [Update] fix misspell <- found by goreportcard report

* [Update] fix ineffassign <- found by goreportcard report

* [Update] Run gofmt -s <- This was found on goreportcard.com

* Fixed test errors

* [Update] golint fixes reported by goreportcard.com (#135)

* [Update] set 1 of golint fixes reported by goreportcard.com

* [Update] set 2 of golint fixes reported by goreportcard.com

* [Update] set 3 of golint fixes reported by goreportcard.com

* [Update] Adjusted using early return best practice and also to fix the last issues on ineffassign by goreportcard

* Fixed go_vet errors

* [Update] Fix remaining golint issues reported, should be 100% after this

* Added new error reporting types

* Fixed #142

* Made Account.Sync user id independent

* Fixed Save() error

* Added Error function to users

* update Import and Export functions

* Use int64 type for long integers where neccessary (#1)

Closes #149

* Fix unmarshal error on Nametag.SelfieSticker

Fixes #156

* Unmarshall was replaced with json decoder to eliminate the problems of float64 with big numbers

* SelfieSticker from string to interface{} avoiding json error

* Remove duplicated functions

The content of account_test.go can be found in examples/account/

Fixes #155

* Add v2 suffix in go.mod module

* add Feed member.
new function for locationID search added

* feedTag moved to Feed

* [Add Example] See who doesn't follow back

* Unfollow everyone

* add SetController for User struct

* rename SetController to SetInstagram

* Update types.go fix Nametag problem (#177)

* Fix file name for downloading (#182)

* update Gradient in Nametag

* Update README.md (#185)

* Constacts synchronization added (#184)

Ability to search users by emails and mobile phones

* Media sync (#197)

* Fix: error 405 for media.sync when request with POST

* Media: create setter for instagram

* fix #199 & #201 type mismatch (#200)

* Update newconversation.go

* Update types.go

* using json number (#202)

* update README

* Update CONTRIBUTING.md

* Fixed type of LastSeenAt in Conversion struct

* Added iterating over pending inbox messages

* Updated go.mod path to /v2 (#203)

* Fix comments pagination

* Fix wrong datatype (#208)

* Fix interface{} unmarshalling

* Improves hashtags isolation/recognition

* minor changes

* Update README.md

* Update inbox.go

Fixes #213

* Remove not used import
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