Identifying Facebook Messenger Lite users - facebook-messenger

Facebook Messenger Lite users cannot see galleries nor many of the other richer aspects of FB Messenger.
How should I identify users messaging via Facebook Messenger Lite (vs. FBM Full) so I can service them effectively without degrading the richness provided to FB Messenger Full) users?
PS someone needs to create tag "facebook-messenger-lite" - I don't have the reputation for it yet.

Identifying the user isn't supported in the webhook events currently. The only way is to look at the user-agent header in the webview.

Related

Full-fledged Watson Assistant integration for testing

I have implemented a chatbot with Watson Assistant. There is a preview link integration available but this has the disadvantage that HTML and emojis are not supported. Using this and this tutorial I can integrate my bot into Facebook Messenger and Skype. But this only works on local devices and I cannot easily distribute it to other people for testing.
What I would like to do is to let several people test my chatbot simulatenously on their own smartphone with full functionality (HTML rendering, emojis). The integration should be very easy for them, for example just opening a webpage or just adding the bot to their Facebook Messenger or Skype (not so many steps as in the above links).
Is this possible?
You can fork this repository and replace the credentials with yours:
https://github.com/watson-developer-cloud/assistant-simple
Then host it wherever you prefer (you can host it on IBM Cloud as part of the Lite account) and share the link with the people you want to test it.

Can I set up a web form that will populate an opportunity in my salesforce

I have a site I sent my clients to who want to move forward with our order process and I want the information they submit to automatically fill in the form under the opportunity. I was wondering how this was possible. I know you can set up a web to lead form but I dont see this option for what I want to do.
There is no native Opportunity feature equivalent for Web-to-lead or Web-to-Case. You do have a lot of options though (ordered from simplest to most complex).
Use an app on the AppExchange that provide web-to-x functionality.
Use a pre-built connector for popular CMS apps to integrate with Salesforce.
Create a Visualforce Page hosted on Force.com sites and then embed that on your website
Create an Apex Web Service hosted on Force.com sites that can be posted to by your form
Write code on your web platform to post to the Salesforce API.

How to verify facebook messenger installed on devices?

Our team has built Facebook messenger for subscribers. We are releasing a beta version and we want to pick up 5% for getting feedback. The challenge is how can we verify which subs have Facebook Messenger installed on their devices?
Thanks in advance.
If you have phone numbers for the subscribers you can use the Customer Matching API. https://developers.facebook.com/docs/messenger-platform/customer-matching
If you don't, you can try to get them to interact with your bot with a Send To Messenger button or one of the other web plugins. https://developers.facebook.com/docs/messenger-platform/plugin-reference/send-to-messenger

how to invite a friend to the application

Hi
I'm trying to develop a simple application in Silverlight to the facebook, I'm using the facebook C# SDK to be able to establish the connection.
I wonder if there is any instruction FQL to invite a friend to the application and keep track of "who invited who" and also if there is any field in FQL to save, for example, the high score of my friends who share the application
thanks
You use requests to send an invite. See this article for more information: http://developers.facebook.com/blog/post/453

Adding Instant Messaging (possibly XMPP) to my website on AppEngine (without using Google Login IDs)

I have developed a dating website built on top of the Google App Engine, to which I would like to add instant messaging, and possibly/probably audio and video conferencing.
Given that the users on the website do not want to share their personal details or real contact information, I am handling all of the login information and sessions without assuming that the clients have (or even want) a google account ID or any other login that is associated with their real identity.
I would like to hear suggestions on how I could go about adding instant messaging to my website given that I cannot just directly access Google Talk or some other existing service.
Would it make sense to use XMPP for this, and if so will Google Talk or any other XMPP service provider allow me to register new user accounts without manual intervention (ie. after a user is registered on my site, automatically register them with the XMPP provider)? Or, if not, perhaps I can use a single google ID with Google Talk with a different resource identifier for each user (me#google.com/user1, me#google.com/user2, etc...), and send messages between the different resources? Could this work, and/or would having thousands of simultaneous connections to a single account get me banned from Google Talk?
Perhaps some kind of AJAX based solution might make more sense given the fact that users are already registered on my website, but are not registered for an XMPP service?
Any suggestions about how I might approach this problem would be greatly appreciated.
Kind Regards
-Alexander
Text chat is the easier problem. You can do either with or without XMPP. Without XMPP, you'll be building a Facebook chat type client on your pages that sends messages from each user to the app, and the app then shows then on the recipient's screen.(The client can be polling, or use comet when it comes out). Check out olark to see how this works.
Once you build code to use the app as a switchboard that routes the correct message to the correct person (anonymously, maybe), you can port this easily to XMPP if you require. Both parties add you.dating.site#appspotchat.com to their buddy lists, and you send all messages from girl#site.com to guy#site.com and vice-versa. (assuming a heterogeneous site.)
Audio and video, I have no clue how to do without sharing details between the parties :-/

Resources