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?
View 2 Replies
Similar Messages:
Dec 24, 2010
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
}
View 1 Replies
Aug 18, 2012
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.
View 1 Replies
Oct 21, 2010
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.
View 1 Replies
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?
View 1 Replies
May 7, 2015
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..
View 1 Replies
Dec 26, 2010
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.
[code]....
View 1 Replies
May 7, 2015
I would like to know how to get the Facebook user language.Â
View 1 Replies
Sep 20, 2010
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#.
View 1 Replies
Mar 4, 2010
if i want my facebook connect site to access user information about a facebook user, is it necessary for that user to be logged in?
View 2 Replies
Nov 14, 2010
I would like to programatically (sp?) open a box asking my users to type in what to publish, but I want it to look like Facebook's own boxes.
View 1 Replies
Aug 20, 2012
I have website with facebook like box for facebook page (eg, abc) . Now if any new post in their at website it will automatically post at wall or not.
View 1 Replies
Aug 17, 2012
can i show facebook send dialog at send button click. mainly i want to send some group,page on one send click. so which will be suitable way.
View 1 Replies
Sep 16, 2010
I wish to access the FaceBook Ads API using the FaceBook toolkit for .NET (which i found in codeplex.com)
Wish to access the ads.estimateTargetingStats in particular .
details of FaceBook Ads API
FaceBook Ads API reference
Are there any frameworks(in .NET) developed around the FaceBook APIs . I am aware of FaceBook Toolkit , FaceBook .NET both are from codeplex.
how to achieve the above quoted requirement with any .NET framework ?
View 1 Replies
Jul 5, 2010
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...!
View 2 Replies
Mar 18, 2011
I've my ASP.Net HTML 5 Application, Which have the image byte array in Session, I'm using the Latest 5.X C# facebook SDK from CodePlex.
But when user is authorized and Coming back to my canvas page at that time I can't access my ASP.Net Session, its give me a null value.
Here is my Code.
[code].....
Now pls give me some suggestion, Where I'm missing, How can I access my Application Session.
View 1 Replies
Mar 22, 2011
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.
View 4 Replies
Sep 16, 2010
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.
How is this possible using ASP.NET 2.0?
View 1 Replies
Apr 21, 2010
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.
View 2 Replies
Apr 29, 2012
I am developing an ASP.Net site where I need to access Facebook site. I want to know how can we register and get API key...
View 1 Replies
Dec 3, 2010
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.
View 1 Replies
Oct 29, 2010
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 ?
View 1 Replies
Sep 17, 2010
I am using facebook graph Api for my application where i want the data of this page.
http://www.facebook.com/pages/
In this page there is option TV SHOW I want collect all information of that page.
But i didn't any graph api method for this page.
View 1 Replies
Jul 17, 2010
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.
View 3 Replies
Jan 12, 2011
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?
View 2 Replies