Social Networking :: Login From Facebook Using Open Auth Dialog Of Facebook
Aug 16, 2012
I need to develop a login where user can login from his facebook account. When user login first time, an auth dialog should open from facebook asking to user for access permission and than it should move to one of my page where I can retrieve user email address and first name & last name through his facebook access token. How to achieve this?
I see that only name,group,email address we can access at facebook send button. How can i send to my facebook page wall (where i am admin) by clicking facebook send button. It's by default don't show it.
i have made a gridview which contains three fields, two textboxes and one combo box. ComboBox fetchs data from table(SQL) and when a combox box triggers, data related to combo must be added in two boxes. i did this throw another button, but i want this to be trigger directly when it clicks..
I use aspsnippets.facebookapi.dll for login into facebook in my web site. But when login into facebook, returned username and email is empty. In my facebook account, email is public. Where is my Fault.
FaceBookConnect.API_Key = "..."; FaceBookConnect.API_Secret = "..."; if (!IsPostBack) { if (Request.QueryString["error"] == "access_denied") { ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('User has denied access.')", true); return;
I'm using the ASPsnippets solution for Facebook login, it works fine but I want to display it into a popup instead of a page. I can't find in the code that part to configure.
In this example ... Im getting error once im logged in no issue ... after that i tryed another login id the previous id details shown in that Lable ...
The exact place for that error ...
FaceBookConnect.API_Key = "app key"; FaceBookConnect.API_Secret = "app secret code"; if (!IsPostBack) { if (Request.QueryString["error"] == "access_denied") { ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('User has denied access.')", true); return; } string code = Request.QueryString["code"]; // here code takes Null for 2nd login if (!string.IsNullOrEmpty(code)) { string data = FaceBookConnect.Fetch(code, "me"); Facebooklogin faceBookUser = new JavaScriptSerializer().Deserialize<Facebooklogin>(data); faceBookUser.PictureUrl = string.Format("https://graph.facebook.com/{0}/picture", faceBookUser.Id);
facebook login is not returning username and email as stated in example
Have implemented the same code given in the example and change the appid and secret code but is not reflecting the email and username but the name is reflecting and the picture is also reflecting.
I am following your code. In "FaceBookConnect.Authorize", if a user is logged in in Facebook, it prompts for authentication. But if the user is not logged in, it redirects to facebook home page. I would like to create a pop up instead. Is it possible to do so?
I have seen your codes to integrate facebook in our application but in none of the code you have written how to logout once authenticated in facebook. I am asking this bcoz facebook session has been started so need to provide user with logout button.
I have tested the solution in the tutorial for getting users information from Login with Facebook (AspSnippet dll). My answer: is it possible to get also First name, Last Name?
I have gone through your articles and I really enjoyed with all the facebook articles. In my aspx page in place of posting walls I want to send notification to facebook users. How can I do this.
I have listview which has bind with database, i need facebook share button with each record in list view and when user click the post share on the facebook wall.
i want to show the post which user has click on to share on facebook not whole page e.g
listview is bind with sql and fetching following record
1. record one <facebook share button> when user click on this button so record one should be share on facebook wall.