{"id":43627887,"url":"https://github.com/0xzer/messagix","last_synced_at":"2026-02-04T16:21:29.925Z","repository":{"id":190741683,"uuid":"683266341","full_name":"0xzer/messagix","owner":"0xzer","description":"A Go library to interact with the Instagram/Facebook API","archived":false,"fork":false,"pushed_at":"2024-03-26T07:57:35.000Z","size":3382,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T16:21:51.969Z","etag":null,"topics":["facebook","fb","fbclient","golang","instagram","lightspeed","lsdecode","messenger"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-26T02:59:58.000Z","updated_at":"2024-03-30T04:24:57.000Z","dependencies_parsed_at":"2023-10-04T07:46:50.673Z","dependency_job_id":"6e963843-127b-40d1-a166-d2ef17c49233","html_url":"https://github.com/0xzer/messagix","commit_stats":null,"previous_names":["0xzer/messagix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xzer/messagix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xzer%2Fmessagix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xzer%2Fmessagix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xzer%2Fmessagix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xzer%2Fmessagix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xzer","download_url":"https://codeload.github.com/0xzer/messagix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xzer%2Fmessagix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29090045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facebook","fb","fbclient","golang","instagram","lightspeed","lsdecode","messenger"],"created_at":"2026-02-04T16:21:29.154Z","updated_at":"2026-02-04T16:21:29.917Z","avatar_url":"https://github.com/0xzer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Messagix\nMessagix is a easy-to-use Go library for interacting with facebooks/metas lightspeed API.\n\n- [x] Login\n\t- [x] Email\n\t- [ ] Phone\n- [x] Fetch contact information\n- [x] Typing Notifications\n- [x] Fetch Messages (with message history support!)\n- [x] Send Messages\n\t- [x] Videos\n\t- [x] External Media\n\t- [x] Images\n\t- [x] Replies\n\t- [x] Forwarding\n\t- [x] Stickers/Decals\n- [x] Send Reactions\n\t- [x] Remove\n\t- [x] Update\n\t- [x] New\n- [x] Appstate\n\t- [x] Online\n\t- [x] Offline\n## Installation\n\nUse the [package manager](https://golang.org/dl/) to install messagix.\n```bash\ngo get github.com/0xzer/messagix\n```\n\n# Simplistic Usage\n```go\npackage client_test\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"testing\"\n\t\"github.com/0xzer/messagix\"\n\t\"github.com/0xzer/messagix/debug\"\n\t\"github.com/0xzer/messagix/types\"\n)\n\nvar cli *messagix.Client\n\nfunc TestClient(t *testing.T) {\n\tcookies := types.NewCookiesFromString(\"\")\n\n\tcli = messagix.NewClient(cookies, debug.NewLogger(), \"\")\n\tcli.SetEventHandler(evHandler)\n\n\terr := cli.Connect()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\terr = cli.SaveSession(\"session.json\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// making sure the main program does not exit so that the socket can continue reading\n\twait := make(chan struct{})\n    \u003c-wait\n}\n\nfunc evHandler(evt interface{}) {\n\tswitch evtData := evt.(type) {\n\t\tcase *messagix.Event_Ready:\n\t\t\tcli.Logger.Info().\n\t\t\tAny(\"connectionCode\", evtData.ConnectionCode.ToString()).\n\t\t\tAny(\"isNewSession\", evtData.IsNewSession).\n\t\t\tAny(\"total_messages\", len(evtData.Messages)).\n\t\t\tAny(\"total_threads\", len(evtData.Threads)).\n\t\t\tAny(\"total_contacts\", len(evtData.Contacts)).\n\t\t\tMsg(\"Client is ready!\")\n\n\t\t\tcontacts, err := cli.Account.GetContacts(100)\n\t\t\tif err != nil {\n\t\t\t\tlog.Fatalf(\"failed to get contacts: %e\", err)\n\t\t\t}\n\n\t\t\tcli.Logger.Info().Any(\"data\", contacts).Msg(\"Contacts Response\")\n\t\tcase *messagix.Event_PublishResponse:\n\t\t\tcli.Logger.Info().Any(\"evtData\", evtData).Msg(\"Got new event!\")\n\t\tcase *messagix.Event_Error:\n\t\t\tcli.Logger.Err(evtData.Err).Msg(\"The library encountered an error\")\n\t\t\tos.Exit(1)\n\t\tcase *messagix.Event_SocketClosed:\n\t\t\tcli.Logger.Info().Any(\"code\", evtData.Code).Any(\"text\", evtData.Text).Msg(\"Socket was closed.\")\n\t\t\tos.Exit(1)\n\t\tdefault:\n\t\t\tcli.Logger.Info().Any(\"data\", evtData).Interface(\"type\", evt).Msg(\"Got unknown event!\")\n\t}\n}\n```\n\n# Login\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"github.com/0xzer/messagix\"\n\t\"github.com/0xzer/messagix/debug\"\n)\n\nfunc main() {\n\tcli := messagix.NewClient(nil, debug.NewLogger(), \"\")\n\n\tsession, err := cli.Account.Login(\"someEmail@gmail.com\", \"mypassword123\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tcli.SaveSession(\"session.json\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xzer%2Fmessagix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xzer%2Fmessagix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xzer%2Fmessagix/lists"}