{"action":"created","issue":{"url":"https://api.github.com/repos/ker0x/messenger/issues/106","repository_url":"https://api.github.com/repos/ker0x/messenger","labels_url":"https://api.github.com/repos/ker0x/messenger/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/ker0x/messenger/issues/106/comments","events_url":"https://api.github.com/repos/ker0x/messenger/issues/106/events","html_url":"https://github.com/ker0x/messenger/issues/106","id":340350838,"node_id":"MDU6SXNzdWUzNDAzNTA4Mzg=","number":106,"title":"Messaging type should be MESSAGE_TAG for tagged messages.","user":{"login":"yaliniyalu","id":33229909,"node_id":"MDQ6VXNlcjMzMjI5OTA5","avatar_url":"https://avatars3.githubusercontent.com/u/33229909?v=4","gravatar_id":"","url":"https://api.github.com/users/yaliniyalu","html_url":"https://github.com/yaliniyalu","followers_url":"https://api.github.com/users/yaliniyalu/followers","following_url":"https://api.github.com/users/yaliniyalu/following{/other_user}","gists_url":"https://api.github.com/users/yaliniyalu/gists{/gist_id}","starred_url":"https://api.github.com/users/yaliniyalu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaliniyalu/subscriptions","organizations_url":"https://api.github.com/users/yaliniyalu/orgs","repos_url":"https://api.github.com/users/yaliniyalu/repos","events_url":"https://api.github.com/users/yaliniyalu/events{/privacy}","received_events_url":"https://api.github.com/users/yaliniyalu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T18:13:02Z","updated_at":"2018-07-11T18:54:15Z","closed_at":null,"author_association":"NONE","body":"Tried to send message with tag\r\n$messenger->send()->message('', '', Send::NOTIFICATION_TYPE_REGULAR, Send::TAG_ISSUE_RESOLUTION);\r\n\r\nI got error\r\nFatal error:  Uncaught GuzzleHttp\\Exception\\ClientException: Client error: `POST https://graph.facebook.com/v2.11/me/messages?access_token=` resulted in a `400 Bad Request` response:\r\n{\"error\":{\"message\":\"(#100) Messaging type should be MESSAGE_TAG for tagged messages.\",\"type\":\"OAuthException\",\"code\":10 (truncated...)\r\n in /vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113\r\n\r\nI don't know whether i made mistake in my code. but it looks like messaging_type is not set correctly so i reported it.\r\n"},"comment":{"url":"https://api.github.com/repos/ker0x/messenger/issues/comments/404274329","html_url":"https://github.com/ker0x/messenger/issues/106#issuecomment-404274329","issue_url":"https://api.github.com/repos/ker0x/messenger/issues/106","id":404274329,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDI3NDMyOQ==","user":{"login":"ker0x","id":5331654,"node_id":"MDQ6VXNlcjUzMzE2NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5331654?v=4","gravatar_id":"","url":"https://api.github.com/users/ker0x","html_url":"https://github.com/ker0x","followers_url":"https://api.github.com/users/ker0x/followers","following_url":"https://api.github.com/users/ker0x/following{/other_user}","gists_url":"https://api.github.com/users/ker0x/gists{/gist_id}","starred_url":"https://api.github.com/users/ker0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ker0x/subscriptions","organizations_url":"https://api.github.com/users/ker0x/orgs","repos_url":"https://api.github.com/users/ker0x/repos","events_url":"https://api.github.com/users/ker0x/events{/privacy}","received_events_url":"https://api.github.com/users/ker0x/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T18:54:15Z","updated_at":"2018-07-11T18:54:15Z","author_association":"OWNER","body":"Hello,\r\n\r\naccording to the [doc](https://developers.facebook.com/docs/messenger-platform/send-messages/message-tags#Sending), all tags, except NON_PROMOTIONAL_SUBSCRIPTION, can only be used with generic model! Are you using another model ? If so, can you try with the GenericTemplate and keep me updated ?\r\n\r\nAnyway, I have to add a check on the tags !"}}
{"actor":{"display_login":"ker0x"}}