Accessing a users contacts from a webpage - qr-code

Is it possible to access a mobile users phone contacts from a web page? The company I work for would like to use QR codes to direct people to a coupon on their website and then give viewers the option of sending the url to their friends in a text message.
Obviously this would be an opt in service. Perhaps you would need to build a mobile application to accomplish the task? If anyone has an idea on how to accomplish this or something similar please let me know.

As far as I know, it is not possible to access the contact database via a web page, on any of the major platforms; in order to access this data, a native application is required.

Nate is right.
The only thing that you can do (that won't accomplish everything you need) is encode SMS message in QR code (e.g. "sms:number:subject" see http://code.google.com/p/zxing/wiki/BarcodeContents), this way your company will get user's phone number as part of SMS message, but not numbers of his/her friends.

An API for accessing contacts is being built into the WebApi by Mozilla but as of today it's not enabled by default and I expect cross browser support is still far off.

Related

Verfiy user is who they say they are on an external website

I am developing a website for our GTA Online Crew, basically a gaming community, my issue lies in verifying that they are the user they say they are when they register (For example if there username on social club is GTOFAN01, we want to ensure that person uses the same username on our site when they register).
As we want all website users to have the same names from social club (owned by Rockstar and I have no way to change anything on there end...) to our website to avoid confusion / posers / trolls etc.
I've had a few ideas but they all create a lot of manual work or I am not sure how to implement, but I have narrowed it down...
Let anyone register and then manually send them a confirmation code through social club to the account name they have said they are.
somehow find out who they are currently logged in as on social club, if this matches the name they supplied then let them in.
find someway to send a message to there social club message box
2 is by far the best, but I can figure out a way to achieve it... I cannot read cookies or session variables from another domain.
Any ideas?
There are several different ways of achieving "federated identity". I would recommend taking a look at OAuth and OpenId. Asp.net Identity has OAuth integration.
See also:
OpenID vs. OAuth
What's the difference between OpenID and OAuth?
The way I ended up going was generating a random qoute for the user to post on the social club (checking it didn't exist first), as the social club feed is public I can then check to see if the qoute was posted and by whom, if this matches who they told us they were then there registration is accepted.
Obviously this is not the greatest solution, but it works and as I've stated I have no control over the social club nor do they offer any way to authenticate a user.
The other befit to this method is it encourages use of the feed which we also wanted to do.

Facebook API Auto accept friend request

I've created a web application that uses the Facebook API.
I would like to implement/create a method which is able to auto accept friend request of my own Facebook account.
Is this even possible and how to implement it in C#/ ASP.NET MVC?
Thank you in advance!
*I alreay read the Facebook Developers documentation https://developers.facebook.com/docs/howtos/requests/ but haven't been able to solve my 'problem'.
There is no API to send or approve friend requests.
There is the Friends Dialog but it sounds like you want this to work without user interaction which is impossible.
If you find some way to do this, you should report it via Facebook's whitehat bug bounty program, as it indicates a bug on Facebook's side.

detect email view counter using ASP.NET

I'm creating a newsletter dynamically in my ASP.NET web app. I've made an ASP.NET page which is sent my users via email, I need to know how many times this email is viewed, what are my options? I have another page which acts as an archive for my newsletters, so I should find a way that each time my email is viewed, "numview" column in my newsletter table is increased by one, is it possible? are there any ready made tools or I should make one using code? it is easy to make one but my page is going to be viewed as an EMAIL, so I think I cannot write SQL commands, how can I solve this problem?
It will not be very easy to add tracking to normal email. but if you are loading some external webpage(of yours), inside the email (via an iframe or as an images source or so), you may try any of the following.
You can try incorporating some analytics code inside your page. So everytime when someone visits the page,the visits will be tracked. You will get a clear picture from the dashboard of the analytics provider. There are lot of providers but i think google analytics is the winner. It is free as well.
If you want to implement your own, you can have a one table which stores the pageid/url, users' IP Address, date, browser etc.. and add a record to this table on the page load event of your page.
I've made an ASP.NET page which is sent my users via email
I had a little trouble understanding this. If it's an ASP.NET page, then how can you send it to users?
Forgetting about ASP.NET for a minute, you can just send an HTML email. One trick is to have the email reference an image on your server. You could then write ASP.NET code to intercept that server request and count the number of times that happens.
However, this is not reliable because most email readers will not display images unless the user indicates images should be loaded for an email because spammers have used this technique too many times.
So, to the extend I understand the question, I do not believe there is a reliable way to accomplish this.

Facebook Development asp.net

I have a problem that I need to send a message to some of my friends on facebook and it is wasting time to send message individually to each one
also I want to be able to send a post that including Image and text to some facebook groups for marketing purpose to my facebook page
So I think that I can find a program that can help me do that or even some code example that can do that, or may be I will need to make my own program, but I never deal with facebook platform before
so please if any one can help I will be thankful
Thanks in Advance
This is straightforward with Windows PowerShell and http://facebookpsmodule.codeplex.com. For example
Get-Friends | Show-FBMessageDialog -Link http://www.example.com
displays a dialog to send a message to all your friends (or you can add a filter to the command). I have used this to send a message to over a thousand people. This is not completely automated (Facebook API restriction), it will show one dialog for each 50 recipients.

Google Chat in ASP.NET application

I want to provide chat facility to my website visitors. This should be same as google chat (person to person communication). Are there any free tools available to integrate in the website? Or is there any way that we can use Google Chat's API and can integrate in our website?
Pls help me.
You can embed google chat into your web page, instructions here
I think a reasonable approach would involve opening an iframe that talks to a dynamic page. The dynamic page would be auto-refreshed by two or more clients and continously post to/read from a table that stores the ID of the session, timestamp, user name(or IP), and message for the chats. The ID of the session would correspond to the dynamic page ID and bob's your uncle.
I'm sure there are various implementations floating around, but I'd want to control this on my own. No user accounts required if you set it up correctly, thought finding other users may be an issue without accounts.
There are a lot of good embeddable chat widgets you can insert into a page fairly easily that do all the work for you.
I've tried out a few of the ones listed in the link above (mostly MeeboMe and Geesee) and don't have any major complaints. With that many choices you should be able to find one that meets your needs. Most don't even require a login.

Resources