this example'u takip ederken. "Hata \ \"Facebook Messenger API: Yapılandırılmış İletiyi Gönder
:
messageData = { "attachment": { "type": "template", "payload": { "template_type": "generic", "elements": [{ "title": "First card", "subtitle": "Element #1 of an hscroll", "image_url": "http://messengerdemo.parseapp.com/img/rift.png", "buttons": [{ "type": "web_url", "url": "https://www.messenger.com/", "title": "Web url" }, { "type": "postback", "title": "Postback", "payload": "Payload for first element in a generic bubble", }], },{ "title": "Second card", "subtitle": "Element #2 of an hscroll", "image_url": "http://messengerdemo.parseapp.com/img/gearvr.png", "buttons": [{ "type": "postback", "title": "Postback", "payload": "Payload for second element in a generic bubble", }], }] } }
I'in bir hata mesajı {\ "mesajı \": \ "(# 100): Terapi öncesi elementlerin: başlık ve en az bir başka alan (image url, altyazı veya düğmeler) boş olmayan bir değerle doldurulur \ ", \" type \ ": \" OAuthException \ ", \" code \ ": 100, \" fbtrace_id \ ": \" ElbXaF25 + 0G \ " }
Bir şey mi eksik? Tüm ilgili alanların mevcut olduğunu bana gösteriyor.
burada dokümanlar bakarken: https://developers.facebook.com/docs/messenger-platform/send-api-reference#request gerekli 'template_type olan yalnızca şeylerin, Öğeler ve başlık ' Ancak hata iletisi en az bir alanın gerekli olduğunu söylüyor. – skylan22
Aynı Problemim Var, herhangi bir çözüm buldunuz mu? –