I am trying to implement a Facebook messenger bot. I have trouble with the bot replying with a response that contains large amount of words. Is there a limit to the number of words that can be used in a response?
P.S : It works fine otherwise
As described in the doc, text message must be UTF-8 and has a 2000 character limit.
There are other restrictions in template for field title, subtitle & call-to-actions button.
Looks like, the limit has been updated to 2000 characters now.
Source: https://developers.facebook.com/docs/messenger-platform/reference/send-api#request
Related
I want to make some text bold in Facebook Messenger, I know adding text will make text bold. I have been using this before.
Look like Facebook has done some updates recently when I add (asterisk)text(asterisk), it repeated the first two letters of the text.
when I send a message using hero card, text with bold is coming.
When i send as
await turnContext.SendActivityAsync("Some *text*");
I am seeing the problem.
there is no update here also. here
Did you try turnContext.SendActivityAsync("Some **text**")?
Here you can see more info. https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html
I want to embed an iframe inside an email that contains the 10 most recent chat messages. Is there a way to make this iframe dynamic so that it always shows the latest 10 chats regardless of when the email is opened? If the iframe is not the correct way to do this, is there a better way?
You can implement an iframe into the email - but your mail will be recognized as spam by many providers.
You should try to render your content dynamically into an image and implement that image into the email.
There kind of is a solution. It is using Dynamic CSS with a fallback of a Dynamic image to pull the information. It is not elegant really as for some clients (e.g. Outlook) this is not available at all and will only display initial information. It also utilizes a link for a style sheet which also severely limits which clients this will work in.
The fall back dynamic image is a bit more comprehensive in client support, but much harder to maintain as you will need to build something that programatically pulls the tweets (HTML webpage potentially) and then also have something that creates and hosts an image for the email to pull. This is not a short, simple thing to set up and may not be worth the required back end work for a simple email.
See this link for a bit more in-depth info on how this can be done for adding a live twitter feed into an email: https://litmus.com/blog/how-to-code-a-live-dynamic-twitter-feed-in-html-email
Since there was no accepted answer i thought i would give my input as well.
Litmus had done something similar for their live twitter feed in emails sometime ago.
The method i can think off is to create a PHP page which takes 10 images and makes it into 1. PHP can have a loop that checks for increments from a specific number and if it exists then add to that 1 image. When there is a new chat image added, PHP will disregard the last one and add the new in the loop.
For anyone reading this in 2022, this is possible with AMP.
Instead of an iframe, you can create a dynamic email easily.
check out amp.dev
Note: AMP is not supported by many email clients
I have a font based on the UNICODE Private Use Area (PUA). It makes use of the range U+E001 to U+E114. After installing the font on my Windows 7 laptop, I was able to type, save and retrieve text on Wordpad. I then set the font in Chrome and was able to send and receive emails using the font. Great!
I want to be able to send messages and posts to my timeline on facebook, so a group of us could study the script further. I could type and send text normally but only a blank message or post is received. Moreover, if I exit and relaunch facebook, the previous message disappears. In its place I see the message :Attachment Unavailable. This attachment may have been removed or the person who shared
Am I breaching any security protocol? Doesn't facebook recognise PUA fonts?
Can anyone help please?
I'm sending regular newsletters through Mailpoet running on a WP site, integrated with Mandrill's API.
In said newsletters I've got multiple links to posts on my blog plus excerpts of the posts. I'm currently tracking all links through Mandrill and a sum of all link clicks shows up at my Mandrill Url Tracking screen. Problem is, for the newsletters I'm sending out, it's essential to see which specific links are getting the most attention (clicks), so I've got an idea what content is relevant to readers.
I've searched all over google and stackoverflow but I haven't found an answer. If there's a way to track specific link activity using Mandrill or any other transactional mail service, or any other conceivable method of tracking individual links in an email being clicked, that'd be fine - this functionality is critical for my project at this point.
I'm a bit over my head here, so any help would be greatly appreciated.
Thanks for your time!
Mandrill search and info APIs return the following information:
"clicks_detail": [
{
"ts": 1365190001,
"url": "http://www.example.com",
"ip": "55.55.55.55",
"location": "Georgia, US",
"ua": "Linux/Ubuntu/Chrome/Chrome 28.0.1500.53"
}
You can use a Mandrill java library to parse this data, and put it into
excel/sql and group by url and count(*) will give which URLs are most clicked.
url field in the above response, is an url in the email . it shows when/where that URL was clicked.
Hope this helps,
Mandrill tracks emails on an per-recipient basis rather than grouping stats together in a discreet bulk send or newsletter report by default. But there are a couple of things you can do to see clicks on individual links easily.
You can search your outbound activity in the Mandrill web interface or API (messages/search) based on URL. For example: url:"https://yourdomain.com/someotherpage/ or url:"https://yourdomain.com/somepattern* That will still show you clicks for an individual recipient though, so if you need to group 'emails' together, you might want to set up tags or custom message metadata so you can group stats together that way. For example, you might use a tag for your bulk email called 'newsletter.' Then, after that email sends, you can search your outbound activity by that tag and then see which recipients clicked on which URLs, and optionally export that data as well.
You could also set up webhooks to get information about clicks on specific URLs as they happen and then aggregate that data in your own app as needed.
Whenever I try to tweet a message containing a custom URL to Twitter using oAuth, the message is posted as plain text including all HTML tags
For example I want show the message as:
this is mysample tweet.
and this is my link: my web address
Twitter doesn't support rich text, it is plain text only. You especially can't set the link text for a URL. The only possibility which could come close is to use the cards feature for supported clients.