Should I build the chatting from scratch or buy a chatting api? - chat

I need teachers to send messages to the students and vice-versa? Should I and can I build something like that with average knowledge or should I use a chatting api on my website? I use php, mysql for back-end and for front-end standard languages.

I recommend using a third party chat API because it will greatly speed up the time to build the chat messaging functionality.
have a look at Minchat which is a third party chat api.

Related

Is it possible to embed Google Analytics eCommerce dashboard into swift application

I'm building a swift app with the purpose of showing GA ecommerce sales from multiple vendors on my website. Each vendor can register on the app and then the access of their sales data will be granted to their user so they can follow their sales.
The ecommerce tracking is preformed by Google Analytics so is there any way where I can embed my eCommerce dashboards onto my swift app?
You can not.
There's no such API available for that intent, the way you want it. You must use theirs...
I am very sorry to tell you, but its is the plain truth.
Welcome!

I need help creating a Whatsapp chatbot

Is there at this moment a reliable way to build a chatbot for Whatsapp? There are some Whatsapp frameworks like this one but looking at the comments it looks like most of Whatsapp numbers got banned when using these. Also, Twilio for example has an API for Whatsapp but it is only for testing.
Thanks in advance!
Currently the WhatsApp API is still in beta and you need to wait for the API to be officially open to everyone. Still you can make a request to get access to their API in advance https://www.facebook.com/business/m/whatsapp/business-api
Twilio now directly supports WhatsApp integration; simply fill out Twilio's Request Access form with accurate and up-to-date information, including the Facebook Business Manager ID, and securely send WhatsApp messages using Twilio APIs.
And, in general, there are numerous approaches to developing a WhatsApp chatbot. However, there are some fundamental considerations to bear in mind when creating a WhatsApp chatbot.
Whatsapp business API
Chatbot builder platform
To build a chatbot I suggest Kommunicate for creating a simple and seamless chatbot. Kommunicate includes a bot builder tool called Kompose, which allows you to create bots without writing a single line of code. You can build AI-powered chatbots, deploy them on your website and apps, and even incorporate automated human takeovers if they fail. For detailed instructions on how to build a chatbot, please see this article. Kommunicate also lets you integrate with other third-party bot builder platforms such as Dialogflow, Amazon lex, IBM Watson, and custom bots.
Once the Twilio account has been configured with the WhatsApp Business API, connect it to the Kommunicate account to deploy the chatbot and manage customer conversations. Refer to this link for detailed instructions
PS: I work for Kommunicate

Applications inside my Web application

Currently we are developing social network, which includes apps inside, for example Games. There is no public API for developers to make their apps, instead Apps developed ourself.
Our platform is based on Zend Framework. Also we have XMPP protocol implementation (clientside-strophe, serverside-java) for chat, notifications and for other pushing tasks. XMPP will be used in apps.
We want to separate apps from social network code, so we can keep it simple, lightweight.
What strategy you can suggest for such separation? Our desire is to keep architecture and code simple and clean.
Since this is an architectural question, I'm sure there are many way of doing what you need. Here is my 2 cents. Keep your apps server completely separated from the social media server. Use client side JS scripts to embed and render the apps on your social media site.
Think it like this: You know Facebook social plugins that allow embedding Facebook components in external sites. Below is a screenshot of Facebook LikeBox embedded in a completely separate DNN portal.
In your scenario, assume DNN as your social media site. And the LikeBox as your app. Architecturally they are well separated, even can be served from different severs. But integration happens on the client side.
If you need these apps to interact with the social media site, either you can do it via a REST API. Or you can use DOM events or simple JS function calls.
Few days ago I wrote a blog post on a similar architecture and can be found at: http://blog.hasith.net/2012/06/traditional-portals-are-dead-long-live.html
3rd party apps like facebook app are standalone application which access facebook DATA .
So make your social network data available through your API on internet, implement Zend_OAuth for authentication HMAC after that you can freeze your social network code .
Now you can create your web application in Javascript/Flash which access your social network data through your API .

how to make facebook chat?

I want to create an android Facebook chat application , i found this open source project ..
http://coderrr.wordpress.com/2008/05/06/facebook-chat-api/
but i want to ask whether this "Facebook chat api" is still working ?
If no, what is the way to creat a facebook chat ?
Dig a bit deeper into http://developers.facebook.com/docs/chat/. There are a number of XMPP and related APIs for Java, C#, iOS, and Android alike to be found on the web - or you can base such work on the libpurple API from Pidgin (http://www.pidgin.im/). It would behoove you to become familiar with XMPP concepts.
There is great simple code https://github.com/KanybekMomukeyev/FacebookChat , i used it in my app.
Facebook provides their own chat API. See the docs at Integrating with Facebook Chat. They provide sample code in PHP.
You can also use Jabber to authenticate with Facebook. You'll need an application key to ensure this all works.
U can integrate fb chat using facebook authentication or by digest md5...the code given there does not use any API keys nor it uses digest md5 authentication... So not sure whether it ll wrk...try it out... the overall architecture would be
app<->xmpp<->BOSH<->Facebook chat
Since fb support xmpp protocol u can set an xmpp chat client using lib lik smack,strophe,asmack etc...
refer to http://professionalxmpp.com/..great to start with..gives complete idea on hw to go abt...

Making a chat room with Facebook authentication

I'm having a hard time figuring out how to create an embeddable online chat room that requires a Facebook authentication. I want the chat room to be public, allow users to log in with their Facebook accounts, and chat with each other using their Facebook identity(name). I know how to authenticate users into a website using FBML and FQL, but I don't know how to incorporate that concept in creating a chat room. Facebook Chat uses XMPP, so I looked up XMPP multi chat documentation, but I can't understand really well. I can do PHP and JavaScript(jQuery/JSON/etc). Can someone help me how to go about making such a chat room?
Building such a thing will not be possible until unless you hack your way around this. Not possible mainly because facebook still lacks federation i.e. as soon as fb chat servers sees -123456#chat.facebook.com trying to send a message of type "groupchat" to a MUC room jdev#conference.jabber.org, it will block this message stanza and not pass it on to the MUC room.
Hacking such a thing will involve writing your custom Jabber/XMPP components running at your own chat servers, which will then take care of outgoing messages of type "groupchat" from your system and re-route them appropriately to the MUC rooms. Jaxl IM is a project which does exactly the same thing and it uses Jaxl (Jabber XMPP Library in PHP) library for all such purposes.