facebook-messenger

Compose a Message with predefined link attached from iOS app into Facebook Messenger

六眼飞鱼酱① 提交于 2020-01-14 05:52:07
问题 I am using fb-messenger://compose to open Facebook Messenger Composer, but I need to attach a predefined link into the composer. I don't want to use action sheet for that. I also saw this answer - Facebook Messenger Compose Predefined Message Which may seem similar but is a wrong answer because it is Facebook SDK and not Facebook Messenger. I looked at Facebook Messenger SDK for iOS - https://developers.facebook.com/docs/messenger/ios under Basic Integration \ Sharing Content and all I could

Facebook Messenger Platform: how to get user specific information?

*爱你&永不变心* 提交于 2020-01-12 07:36:08
问题 I'm trying the recent released Facebook Messenger Platform and so far so good. Everything worked well and I was able to create a echo bot. But I'm wondering how I could identify this user that started chatting in my page. For example, when a user started chatting I get a PID user (page specific user id). Making the follow request to Facebook Graph API: GET https://graph.facebook.com/v2.6/{PAGE_SPECIFIC_USER_ID} I discovered that I can just ask for the following fields: first_name,last_name

Messenger Extensions Javascript SDK Error 2071011

邮差的信 提交于 2020-01-12 02:26:51
问题 I'm trying to create a Messenger Web View (https://developers.facebook.com/docs/messenger-platform/messenger-extension) by using the Messenger Extensions Javascript SDK. The page opened by the Web View has the following JS code <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.com/en_US/messenger.Extensions.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script

Messenger Extensions Javascript SDK Error 2071011

自古美人都是妖i 提交于 2020-01-12 02:26:09
问题 I'm trying to create a Messenger Web View (https://developers.facebook.com/docs/messenger-platform/messenger-extension) by using the Messenger Extensions Javascript SDK. The page opened by the Web View has the following JS code <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.com/en_US/messenger.Extensions.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script

How to display an emoji in a Facebook Messenger bot?

南楼画角 提交于 2020-01-07 05:12:28
问题 I'm trying to display an emoji in a Facebook Messenger bot made in NodeJS but I cannot figure out how to turn chars like http://apps.timwhitlock.info/unicode/inspect/hex/1F382 into a string I could send via the API. Many thanks for any help. 回答1: Some of the emojis are not supported. You will get snowflakes if you try this decodeURI('\u2744') whereas, decodeURI('\uF382') is not working. Thanks Sriram 来源: https://stackoverflow.com/questions/41465642/how-to-display-an-emoji-in-a-facebook

Webhooks failing with “Invalid Scopes: pages_messaging_subscriptions” [duplicate]

…衆ロ難τιáo~ 提交于 2020-01-01 03:22:09
问题 This question already has answers here : Facebook Messenger App Invalid Scope - permission: pages_messaging_subscriptions (3 answers) Closed 3 years ago . I had a submitted and approved Facebook messenger bot working. But I just got a developer update just now saying "Your Webhooks subscription for callback URL https://BOTNAME.herokuapp.com/ has not been accepting updates for at least 16 minutes. Please verify that your callback server is functioning." I do see that my callback server and

Sharing image and text to Facebook Messenger with UIActivityViewController failing

流过昼夜 提交于 2019-12-31 02:13:17
问题 Question What changes to the code below must be made to ensure Messenger plays nicely with UIActivityViewController and shares both the image and text, or at the very least, the image? Background I am using UIActivityViewController to share text and images from my app and send them to email, messages and other sharing apps. UIActivityViewController is great and works in a simple and standard way with most apps… but, I’m having issues with Messenger (Facebook Messenger) which doesn’t want to

Facebook Messenger sending metadata (Android)

▼魔方 西西 提交于 2019-12-30 13:09:08
问题 I'm following this guide to create an app which sends an image to Facebook messenger. String mimeType = "image/png"; Uri contentUri = Uri.parse("android.resource://com.test.test/drawable/foobar"); String metadata = "{ \"name\": \"baz\" }"; ShareToMessengerParams params = ShareToMessengerParams.newBuilder(contentUri, mimeType).setMetaData(metadata).build(); MessengerUtils.shareToMessenger(this, REQUEST_CODE_SHARE_TO_MESSENGER, params); The code is pretty simple and almost identical to Facebook

Bot Framework fails to send FacebookQuickReply using AddKeyboardCard or using ChannelData

帅比萌擦擦* 提交于 2019-12-29 01:45:13
问题 I am using Bot Framework 3.3.0 which I understand supports Facebook's quick replies implemented properly (as opposed to creating a dynamic object and sending it via ChannelData ). The class name is Microsoft.Bot.Builder.ConnectorEx.FacebookQuickReply. Here is how I create the quick replies from within an IDialog: var reply = context.MakeMessage(); reply.Text = msg; var quickReplies = new List<FacebookQuickReply>() { new FacebookQuickReply(FacebookQuickReply.ContentTypes.Text, "Cathay",

Facebook Messenger :How to show a greeting message when start conversation

£可爱£侵袭症+ 提交于 2019-12-25 08:15:19
问题 I want to show a greeting message when start a conversation on Facebook Messenger ( before any user input ) . How to do it? The problem is : My code is for server by NodeJS ,and it only trigger when a message is send to server ,which mean it only be triggered when users send something. Facebook messenger doesn't send anything when you press button "Message". I have check this link Messenger Greeting , but it only shows when a new user starts chat ,but i need show it when starting