I have a video website. I want the users to vote for the videos with their facebook ids. What i want is to put an ajax rating control under videos. If the user is currently logged in on facebook, when the user clicks the control to rate the video i want to get the user id of the facebook user. If the user is not logged in I want to show a modal popup for facebook login and get the user id after user is logged in.
Any help would be appreciated.
Thanks.
If I am not wrong you will have to go all the way and create an App in Facebook and integrate it with your site.
You may first want to check the Javascript SDK
http://developers.facebook.com/docs/reference/javascript/
If that doesn't work, I have a blog article that does the full server side integration
http://theocdcoder.com/tutorial-integrating-facebook-authentication-asp-net-mvc-3/
Related
TL;DR;
Facebook login makes the original referral URL change since and in GA it will look like they originally came from a Facebook.
We have the following problem using Google Analytics (UA) for Facebook (Oauth) login:
user lands on /page/1?utm_campaign=aaa and GA session is created with correct initial referrer, campaign etc.
user visits a few other pages and decides to register using Facebook
Facebook login makes the user's browser to go to facebook and come back which changes the referral and thus creates a new GA session
When user lands back on our callback url we fire an event that is converted to goal in GA
The problem is that all users who register using Oauth have the referral set to Facebook and the landing page to the page where they land after Facebook's callback because that's when GA "resets" the session :( .
Is there a way of joining the two sessions in GA and making it know that it is the same user all the time so that Facebook registers keep the full information on initial referrer, landing page, UTMs etc. ?
Follow FB SDK example and OAuth dialog will open in a popup window.
It will remove the issue with GA.
Most of OAuth providers that I know also support opening a dialog in a popup window.
I need a help or guide on this:
I am making a facebook app and I wish it to make in meteor.
When user opens my app, it automatically authenticates the user with facebook and pop ups dialogue box. And when user is authenticated or connected to facebook I want to save the user to meteor's user collection and set current user to facebook user.
I am new at meteor and didn't find a head point for this. Hope someone will guide me out.
Thank you..
I think automatic authentication is a bad practice both from UI perspective and from user perspective. If i open something, I want to be able to decide for myself if I want to authenticate a third party application with facebook so I'd have a button that promps people to signup with Facebook. You'll need:
accounts-password
accounts-facebook
service-configuration more info
Read through that flow and there is an example of setting a singup event up.
I am creating a wordpress plugin for admin. In which admin can show his selected photos from facebook album on front end.
App id and secret key are storing in db.
Login also working and it fetches the login user albums etc etc.
and Logout also working. But when on the site if some one has logged-in in my plugin then from any system it must show the login details.
What currently its doing is that to login to facebook, which i don't want.
The method i want in my plugin is same as its in wordpress easy instagram plugin, where in the site if the user logged in then it will always show the login credentials what happening in this instagram plugin is that is stores the access token in wp options table. if we delete the value for that option then it will specify in the back end to login.
I want same process in my plugin too.
Auto login process. (one time login)
Anyone knows how to make this work?
Thanks
I am developing my site and in my site I want users to login through their
social network credentials like Facebook and Twitter.
How should I track these users whenever they do any event on my site? Suppose a user logs in with Facebook username & password, and now he is redirected to the next page. On that page, we are doing some activity like 'add something'. How to track this?
Is there any procedure for working with this?
The common practice is to associate user's Facebook or Twitter account with your internal account and then track all user activity via your internal account id. If the newly logged in user doesn't have an internal account, then silently create it from Facebook/Twitter data and auto-associate.
Btw, integrating your ASP.Net app with Facebook and Twitter will be easier using Facebook C# SDK for Facebook and Twitterizer for Twitter.
Have a look a the OAuth C# Library
http://www.matlus.com/oauth-c-library/
I want to support the following scenarios on my ASP.NET MVC website:
First time visitor wants to
register, via facebook connect. I'd
like the user to have an entry in my
user membership table - so I have
them enter a username/password
(email gets populated via facebook
connect).
Registered user returns to my
site, logged into facebook already.
I'd like my site to see they're
logged into facebook already and
auto log them into my membership
system.
Registered user returns to my
site, but is not logged into
facebook. I'd like to give them two
options: to log into my site
directly or use facebook connect.
Extra:
After a user has connected their
facebook account to my site, I'd
like to use their facebook profile
photo throughout my site where the
user has participated.
I'd also like to post a bit of text, maybe even a photo, to the user's wall (when they perform an action of course).
Couple questions:
What should I store to tie the user's id in my membership system to their facebook account? I'm assuming it would be their facebook user id.
Can this facebook C# SDK handle these scenarios?
Yes you would store their Facebook Id and Yes the API can support this.