Thursday, August 21, 2014
Posted by Chat Wing
| 6:42 PM
Any Size User Base and Communities can now integrate Chatwing directly.
Custom login feature allows you the developer to integrate your own account system into your chatWING chatbox so that your users can start chatting without having to registering a new account or using another account from Facebook, Twitter etc...
Use the Following Instructions to Integrate:
Custom login feature allows you the developer to integrate your own account system into your chatWING chatbox so that your users can start chatting without having to registering a new account or using another account from Facebook, Twitter etc...
Use the Following Instructions to Integrate:
How to automatically login user
Once you have custom login enabled, you can also integrate it within your website so that users won't have to login twice. In order to do so, you must follow the process of encrypting the user session in "How to integrate" section.
When you have the encrypted session, simply append it using the query param
custom_session
to the chatbox url (if you are using iFrame code)http://chatwing.com/chatbox/83206479-8cb4-455a-a0ef-59506057fa13?custom_session=<?= $encryptedSession ?>
or direct url
http://chatwing.com/admin1626?custom_session=<?= $encryptedSession ?>
If you are using Javascript code to embed chatwing chatbox (either it is embedded or popout version), you need to do this. chatWING Javascript code automatically picks any encrypted session stored in
window.chatwingSession
and appends it into the chatbox url.<script type="text/javascript">
window.chatwingSession = "<?= $encryptedSession ?>";
</script>
NOTE: If you have more than one chatbox in the same page, you need to generate different encrypted sessions using different secrets (from each chatbox) because one encrypted session can only be used for one chatbox.
How to integrate (in English)
In order to use custom login feature, you must provide the login URL, user icon and login button icon.
- Login URL: When an anonymous user wants to login, they are redirected to this URL. In the login URL, you must provide a way for users to login and/or register new account. You are responsible for handling any errors that may occur during the process. After the user is authenticated, you must redirect them back to
redirect_url
(it is provided automatically when calling login url from the chatbox) along with a new query param calledcustom_session
containing the encrypted session of the user (more on it later).For example, if your login url ishttp://mydomain.com/chatwing-login
, the redirecting url would behttp://mydomain.com/chatwing-login?redirect_url=http%3A%2F%2Fchatwing.com%2Fchatbox%2F83206479-8cb4-455a-a0ef-59506057fa13%2Fcustom
After authenticating and encrypting the user session, you must redirect the user back to us by using the aboveredirect_url
and append the encrypted session incustom_session
http://chatwing.com/chatbox/83206479-8cb4-455a-a0ef-59506057fa13/custom?custom_session=[the encrypted session]
- Secret: This is used to encrypt the custom user session. Here is an example of the PHP implementation
$data = array( 'id' => 1, 'name' => 'Custom Login', 'avatar' => 'http://mydomain.com/avatar/1.png', 'expire' => round(microtime(true) * 1000) + 60*60*1000 // in millisecond ); $data = json_encode($data); $blocksize = 16; $secret = ''; $md5 = md5($secret); // Strictly maintains the length of key and iv $key = substr($md5, 0, 16); $iv = substr($md5, 16, 16); // We need to pad the input manually to match with the server-side's padding scheme $pad = $blocksize - (strlen($data) % $blocksize); $data = $data . str_repeat(chr($pad), $pad); $encryptedSession = bin2hex(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv));
id
(required): It can be anything as long as it is unique to identify each username
(required): Name, just nameavatar
(required): Absolute path to the avatar (must start with http:// or https://, otherwise, http:// will be appended automatically)expire
(optional): The lifespan of your custom session (in millisecond). It is recommended that you set it to a reasonable value to avoid identity thief
- User icon: The icon displayed near the name (must be 16x16)
- Login button: The button displayed in the login method dialog (must be 88x25)
Sunday, August 17, 2014
Posted by Chat Wing
| 2:51 PM
One of
the most useful features of the Chatwing platform is the network or group
system. Through these networks,
you’ll be able to market your products efficiently. Accessing the networks is
easy and you can be exposed to hundreds of people worldwide.
To access
the networks, you need to go straight to your dashboard. From there, you can
link the chatroom into any of the available networks. These networks are
divided according to popular niches; it’s advisable to select a niche that’s
parallel to the products or services that you’re offering. With your chatroom
connected, you can access various streams of information related to your target
niche.
There’s
no limit when the chat widget comes to network connections—you can basically connect and
reconnect to any networks, but only one can be active at a time. Currently, the
Chatwing developers are planning to add new networks for better variety.
When it
comes to Internet marketing, Chatwing’s networks can give a significant boost.
It has been estimated that every network has over dozens of active chatters,
and all of them are seeking for timely information. Some of the popular
networks are Forex, Sports, Fashion, Hollywood Movies, Anime, and International
Chat.
More
importantly, all of your active Chat Wing chatrooms can be connected to
networks. This is a diverse communication strategy that will make your Internet
marketing effort more productive.
Wednesday, August 6, 2014
Posted by Chat Wing
| 9:18 PM
A popular Chatwing use is convergence among Twitter communities and niche chatrooms. Here
are some reasons why convergence is important between Twitter and ChatWING.
Both Utilize
Communication
Twitter is all about
micro-blogging, just like Tumblr. Chatwing, on the other hand, is about the
usage of chatrooms. Nevertheless, both of them tackle communication to a
certain degree.
In Chatwing widget,
you can benefit from the Twitter login system. With this, visitors can use
their Twitter accounts to log in. From there, it’s possible to send friend
requests to these Twitter users. Now, there’s a mobile way for you to grow your
followers.
The effect is also
mutual. You can share your Chatwing chatroom to your Twitter wall. Simply
generate a shortlink from your Chatwing dashboard and your Twitter followers
can just click on it. Upon doing that, your chatroom will pop up and regular
conversations can begin.
The Exposure
is high
Exposure is an
important factor in the cyberspace. Without this, websites will never grow, and
products will have a hard time reaching people. There are hundreds of ways of
generating exposure, and Chatwing-Twitter connectivity is an easy tactic.
Apparently, Chatwing
chat widget can provide up to 65% exposure rate to any website—provided the usage
is continuous. If the widget is linked to Twitter, the rate can even go up,
depending on the niche.
If you know how to
utilize the convergence among these two platforms, you’ll have greater
communication within your reach. Just be patient in trying out new
communication strategies from time to time.
Subscribe to:
Posts (Atom)