Access Facebook UserId In Facebook Canvas Before OAuth Authentification?
Sep 1, 2010
In my facebook canvas applikation, i store the access token in session. (I use ASP.NET MVC)
But i want to store the access token in a database along with the facebook user id that i can save different access tokens for different facebook users accessing my application.
So when i query the facebook user id and if it doen't return any access token, i request permissions and get the access token for that user.
How do i access the Facebook UserID for the user accessing my canvas application before doing any authentification?
Im trying to use the sdk without a canvas application, so have followed steps 1-7 in the quickstart guide up to adding the facebookSettings property in the Web.config.
I have added an image to my page and an onclick event that contains the below code. but when I click the button, it just takes me to the home page (CancelUrlPath).
Changing the Authorizer to a CanvasAuthorizer results in FB loading the login screen, but I get an error 404 not found on the call (even after inserting the handlers into the config)..
fbApp = new FacebookApp(); authorizer = new Authorizer(fbApp) {Perms = requiredAppPermissions}; authorizer.ReturnUrlPath = "http://localhost/User/UserRegister.aspx"; authorizer.CancelUrlPath = "http://localhost/"; if (authorizer.Authorize(this.Context)) { Response.Write("hello");//never gets here }
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 am attempting to create a Facebook IFrame Application using the Facebook Developer's Toolkit (language I'm using is VB). No matter what I do, I cannot get past this error message from Facebook.
App may not request permissions that do not apply to all profiles in the selector
I have tried dropping a CanvasIFrameLoginControl with requirelogin=true
i have also tried inheriting Facebook.Web.CanvasIFrameMasterPage then adding Me.RequireLogin = True to the Page_Init event. Both of these do require login. As soon as I add Required permissions, however, I get the API Error Code 100 - an app may not request permissions that do not apply to all profiles in the selector error from facebook.
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 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'm trying to create a basic application, i created facebook application before but everything has been changed.
I looked every where to create a basic application, but now i'm getting mad because there isn't any working sample. Because of the changed links, facebook api changes, facebook wiki changes i couldn't find a working copy.
write a basic app that gets permission to write user name to screen in facebook developer toolkit asp.net. I looked computerbeacon.net, codeplex, and some other pages but i couldn't succeed.
Edit: I' m adding some screenshots and some codes, it will may be you to find my problem.
i created a mathod facebookInfo(string username,string password) ,so i received username and password but after receiving its not possible to login at server side,because ther is only one way to connect to facebook using facebook api ie.
facebookservie.ConnectToFacebook();
and its open IE browser,so there is any way to login automatically and get session,using any javascript or nay other way at server side using ASp.net in C#.
to build the functionality whereby if a user supplies login information to facebook within an asp.net membership site that I can query their friends list?This is to make it easier for the user to connect to friends and to send a link to them (e.g. almost like a bookmark). Needs to be secure and not open to abuse e.g. spamming...!
I have a website with WebForms Authentification enabled using a MySQL provider and i've also an ASP.NET Profile. I have the Role: NormalUsers, and HighLevelUsers. I have a folder named:"Users" that has access rules to: Deny ALL, Allow NormalUsers. I have a page names: MyProfile.aspx in the folder Users
First: I want the users to login with an email and a password not a username and a password.
Second: Now i want anonymous users to connect with their Windows Live ID and use my website as NormalUser, I also want to allow them to migrate their account to a normal WebForms account with a simple click that invokes the CreateUser methods and get the Email, Name, FirstName ..ect from their Windows live account to the createUser method.
Platform: Visual Studio 2010 (No SP), .NET 4, ASP.NET WebForms.
I have a site where users can register an account. To do this they have to enter various details about themselves (Name, DOB, Email Address, Password, Username etc..).
However, I would like them to just have to enter their Facebook username/password, and have all this information pulled from their Facebook user account.
I have an asp.net app that allows users to create personal pages which can be publicly accessed thru a "directory" page. The content of the pages is stored in sql server, so a given user's page is dynamically created thru the code that executes when the relevant link on the directory page is clicked.
I would like to take this a step further by allowing access to a given user's page directly thru the browser's address bar, something like www.thegreatestsite.com/jim (pretty much like You Tube, Facebook, etc.).
I could achieve this by manually creating a folder under the root, called "jim" and putting a default.aspx page in it which would have code in it's load event that would dynamically create jim's page.
However, I would like this "additional feature" to be created automatically, as part of the sign up process of the user.
I'd like to post messages to a group wall without asking user for login information -I'd like to do it programmatically, I can use my user/pass if necessary-.
¿Is it possible to do this without showing the user the login screen?
Note: I'm working with Facebook C# SDK [URL] under ASP.NET.
I've done quite some research on which ASP .NET Facebook SDK to use. Acording to this post [URL] old FacebookToolkit should not be used for new projects but instead we should use the all new and shiny Facebook C# SDK.
But he problem is that it lacks documentation, especially beginners examples for creating Facebook applications with Facebook SDK and WebForms:
How to start Basic authentication examples More examples... Where did Facebook.Web.CanvasIFrameMasterPage go from Toolkit ?
I see a lots of different framework for development of app in asp.NET using C#. Please suggest a stable and well document framework for FB development.
In my ASP.net MVC app, I'd like to log a user out of Facebook on their local browser so that when they click the authentication button, they're forced to enter their credentials, even if they were previously logged into Facebook. I'd like to also do this after they're done authenticating, too. The end goal being that users will be able to enter credentials for multiple Facebook accounts.So how can I log a user out of facebook programatically?