Chat (like Facebook) source code/component for ASP.NET Website - asp.net

I want to add a chat feature (like Facebook chat) on my ASP.NET Project. All chat functions are like FB Chat. Example:
blink browser 's title to alert user when new message come
do not close when reload page
...
My project have users database and user will login to use chat feature.
Hope someone tell me source code or component or any information about that.
Thanks !

Found this one: JabbR. Live site here, Source code here. Try out the Live site and if you like it, download the source from github.

Related

How to open Google Authenticator from a link?

I'm developing a website that requires a 2FA. We already permit to users to set it by scanning a QR Code shown in our configuration page.
My question is a bit more tricky. How can I permit user to open the app if he opens the page from mobile browser, ie. navigating from the phone with the Authenticator app installed?
I already have the logic to understand if the user is on mobile or not, but I don't find any solution that can replace the QRCode since the user cannot use the mobile camera in that case (he is using the phone to net on my website!).
I was searching the possibility to create a link that is recognised by an authenticator app (Google Authenticator or Microsoft Authenticator) but I didn't find a solution. Any idea?
After some research and trial, I found the link I was searching for.
In Google Authenticator (or any other app), the account are listed in the form:
Amazon(my#amazon.com)
123455
Google(me#gmail.com)
455234
Issuer(email)
554645
AnotherCode
142414
In order to generate a new entry without scanning the QRCode, a link in the form of:
otpauth://totp/dev#it.com?secret=123abc&issuer=StackOverflow
has to be opened. For instance, the link above results in the following entry:
StackOverflow(dev#it.com)
The link is opened by the phone using the installed Authenticator app.

Open telegram app from a link in a mobile web site

Is there any way to open telegram application from a website being in a mobile? I know if you use telegram:// you can open telegram app, but how can I open telegram and create a new conversation with a given number? i know it is possible by whatsapp like this:
this is the link https://api.whatsapp.com/send?phone=359883378007,
when the link loads it beign redirected to this link
whatsapp://send/?phone=359883378007
You can use this link to open conversation with telegram username:
https://telegram.me/telegramUsername
telegramUsername:
username without #
To share with Telegram.me, you have the following URL options...
https://t.me/share/url?url={url}&text={text}
https://telegram.me/share/url?url={url}&text={text}
tg://msg_url?url={url}&text={text}
Take a look at the official API source: Core.Telegram.org: Widgets -> Sharing Button. They suggest the t.me format. It seems like telegramUsername format, or any format indicating a user or a phone number, is not supported according to the documentation.
You may share:
url : The URL you want to share.
text : Text to accompany the URL you want to share.
If you are interested in watching a project that keeps track of these URLs, then check us out!: https://github.com/bradvin/social-share-urls#telegramme
2022 Updates
YOU CAN'T DO THAT.
But, you can do the same with username -
https://telegram.me/Telegram_Username_Here
For updating the information -
telegram:// no longer works on the latest chrome browser of pc version, instead of this, use tg:// which works great on all devices.

Unable to register my application with Google Developers

In my endeavour to gain use of the Youtube API I am required to follow the procedure defined here.
In this link there exists a Prerequisites section that states:
Register your application with Google so that it can submit API
requests.
This takes me here which is a page Titled: "Registering your Application". This page contains instructions stating:
To register a new application, do the following:
Enter the Google Cloud Console https: //cloud.google.com/console [hit my link limit LOL]
Select a project, or create a new one.
In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
In the sidebar on the left, select Registered apps.
I have done all of the above. I have also clicked on the project taking me to another page. I am however, unable to register the application.
My question to you is "Where do I find the "Registered apps" because it's not in the sidebar on the left.
Google even provide a video on the instructional page stepping you through it. Unfortunately the video appears to be for an older site.
I am running Firefox 25.0.1. and it doesn't work for me so any guidance would be appreciated.
Instead of Registered Apps, in new version you'll go Credentials under API's and Auth and create your keys there.
I tried everything to help you out but i couldn't find "Registered Apps" too. Have you ever tried "Credentials" ? I think it works for the same way.
They don't care much about updates i guess. That's why they did not renew the instructions and the video..

How To Create Facebook Application programmatically?

I want to create a facebook app from within my code.
When done manually, I have to go to developers.facebook.com, go to the apps section and click on "create a new app". This will create a new app and facebook will ask me to provide the basic information like
App display name
App namespace
Site url
canvas url
This will create a new app.
I want to do the same automatically. Is it possible with RestFb?
Answer to your question is, NO you can't do that by any Facebook method and the reason for the same is similar to the reason that due to which you can't create Page, Facebook user account, Group through Facebook's API and it is security which other poster has listed out.
Think about it. If you could do it by code you could atuogenerate infinite apps automatically. It will be a dangerous security hole to facebook. So, you have to do it manually.

Renaming a facebook page tab

I have created a facebook application to add a page tab in any facebook page.
for this i have a pagetab name in facebook integration of application's setting part.
Suppose i have added the name as "MyFbTab"
Now the problem is when someone add my application to his page then a tab will be added with name MyFbTab , but i want to ask user for a name and then the tab created with the name entered .
I am using facebook js sdk for this
So please help regarding to fb js sdk
I have found a method for this in php sdk but want to do this in js sdk
regards
You can use the API to change the name given to an installed page tab, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
Short version, make a POST request to
/PAGE_ID/tabs/APP_ID?custom_name=MyPageTabName&access_token=PAGE_ACCESS_TOKEN
{edit}
In the Javascript SDK you won't be able to do this directly because the Javascrtipt SDK will be using the user's access token and you'll need to make that call with the page access token you retrieved from the user's /accounts connection earlier.
OAuthException "(#210) Subject must be a page." has an example of someone using Jquery to take the page access token and make the API call that way. In their case they're using it to install a tab rather than edit an existing one, but it's almost exactly the same for your problem

Resources