facebook-messenger

Sharing image and text to Facebook Messenger with UIActivityViewController failing

时光毁灭记忆、已成空白 提交于 2019-12-01 20:23:52
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 cooperate. In the below code, I tap a UIButton which takes a snapshot image of the screen, turns it into

Facebook Messenger sending metadata (Android)

為{幸葍}努か 提交于 2019-12-01 13:29:53
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's own sample code. The image is properly sent to the messenger which recognizes my app to be optimized

Facebook Messenger App Invalid Scope - permission: pages_messaging_subscriptions

醉酒当歌 提交于 2019-12-01 07:15:41
问题 I'm attempting to connect a Facebook Messenger App to one of my pages.. I've connected Facebook Messenger Apps to pages before. But this is the first time I've received this error... What gives? 回答1: This is a bug and we are currently working on it. In the meantime, please use our beta tier or generate the page access token through our API. To use the beta tier, you can access the following: https://developers.beta.facebook.com/apps/89000000000000/messenger/ 回答2: we got same error and here is

Android. Send text to facebook messenger by Facebook SDK 4.X

血红的双手。 提交于 2019-12-01 05:56:00
As document from facebook, we can send image from android app to facebook messenger like below. String metadata = "{ \"image\" : \"trees\" }"; ShareToMessengerParams shareToMessengerParams = ShareToMessengerParams.newBuilder(contentUri, "image/jpeg") .setMetaData(metadata) .build(); // Sharing from an Activity MessengerUtils.shareToMessenger(this, 0, shareToMessengerParams); But I want to send just text. So I tried below. ShareToMessengerParams shareToMessengerParams = ShareToMessengerParams.newBuilder(null, "text/plain") .setMetaData("text to send") .build(); // Sharing from an Activity

Android. Send text to facebook messenger by Facebook SDK 4.X

廉价感情. 提交于 2019-12-01 03:52:43
问题 As document from facebook, we can send image from android app to facebook messenger like below. String metadata = "{ \"image\" : \"trees\" }"; ShareToMessengerParams shareToMessengerParams = ShareToMessengerParams.newBuilder(contentUri, "image/jpeg") .setMetaData(metadata) .build(); // Sharing from an Activity MessengerUtils.shareToMessenger(this, 0, shareToMessengerParams); But I want to send just text. So I tried below. ShareToMessengerParams shareToMessengerParams = ShareToMessengerParams

Facebook messenger API bot : “Typing bubble” “ indicator bubble”

爷,独闯天下 提交于 2019-11-30 17:25:16
I've created a messenger bot, and some action that I perform can take some time. So in order to make the user wait I would like to display the "Indicator Bubble" (the one you see when the people you talk with are typing): Typing bubble It is not defined in the Messenger API documentation how to do it, but it seems possible has they perform it when you hit "callBack" on their card. How can I simulate this? Spope It's now available into the messenger bot API via the Sender Action. You can find the documentation here . It's just a post with an on or off value to display / hide the bubble

Send message back from Facebook webview to bot

放肆的年华 提交于 2019-11-30 08:53:17
问题 Had written bot on ms bot frameworks for Facebook Messenger which creates carousel using custom channel data attachment with web_url which enables messenger extensions: "messenger_extensions": true . We have Added Messenger Extensions on a webview page but it is not clear how to send message with an attachment from this webview page back to messenger and therefore to bot framework. <!DOCTYPE html> <html> <body> <style type="text/css"> .button { background-color: #4CAF50; /* Green */ border:

Why is hardware acceleration not working on my View?

我是研究僧i 提交于 2019-11-30 05:08:35
I'm using Facebook's Rebound library to replicate the bouncy animations seen in their chat heads implementation. The problem is, most of the time the animation stutters. A few pictures will explain this better. Here's the buttery-smooth chat heads animation: And here's my attempt (notice how the animation for the white View skips nearly all frames): Once in a while it works smoothly: Below is the code I'm using currently (the entire project is up on Github if you want to set it up quickly). I'm guessing this has something to do with hardware acceleration not being enabled correctly on my View

Facebook Messenger webhook setup, but not triggered

故事扮演 提交于 2019-11-30 02:54:13
So I'm trying to setup a bot for the new Facebook Messenger API. I'm following the quickstart . I setup the webhook ok, and see it in my webhooks, I called this: https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=%3Ctoken%3E and it did not throw any errors, But when I go to the Page that I generated the access token on, and send a message, it does not call my webhook. I check the httpaccess, and it does not call it. Any way to debug this or any ideas? Also, one thing I'm still puzzled over is how to support managing multiple pages from one Facebook app? Anyone know the answer to

Send message back from Facebook webview to bot

放肆的年华 提交于 2019-11-29 08:46:29
Had written bot on ms bot frameworks for Facebook Messenger which creates carousel using custom channel data attachment with web_url which enables messenger extensions: "messenger_extensions": true . We have Added Messenger Extensions on a webview page but it is not clear how to send message with an attachment from this webview page back to messenger and therefore to bot framework. <!DOCTYPE html> <html> <body> <style type="text/css"> .button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block