Using The Facebook C# Sdk Without A Canvas Application?

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


Similar Messages:

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

Facebook Canvas Iframe App Extended Permissions Failing?

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

C# - Iframe Canvas Application With Master Page?

Mar 18, 2011

I am developing an Iframe-Canvas Application.

I am using Master Page to gain permission access & display few details, that works good.

Then on content Page I want to display a textbox & linkbutton so user can post status on their wall & here I get error

(OAuthException) An active access token must be used to query information about the current user.

here's my code :

Site.master.cs
protected void Page_Load(object sender, EventArgs e)
{
var auth = new CanvasAuthorizer { Permissions = new[] { "user_about_me","user_birthday","user_location","offline_access","publish_stream" } };

[Code]....

View 2 Replies

How To Create Facebook Application Via Facebook Developer Toolkit

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

Social Networking :: FaceBook - Error Validating Application - Invalid Application ID

May 6, 2013

{
"error": {
"message": "Error validating application. Invalid application ID.",
"type": "OAuthException",
"code": 101
}
}

View 1 Replies

C# - Get Snapshot Of Canvas?

Jul 30, 2010

I develop small application using javascript, using this I can draw on the canvas.I want to know, How get snapshot of my canvas and send it another one, using javascript or any other server side language.

View 3 Replies

Want To Use PHP Facebook Application API/framework

Feb 17, 2010

I am a ASP.NET developer but also have knowledge of PHP.I just want to know if i have to choose facebook application API/framework, which one i should choose ASP.NET or PHP.One of my friend suggest that Facebook itself build in PHP and they officially support PHP API, so use PHP facebook application API/framework.

View 1 Replies

C# - Flash Facebook Application How To Do It

Jun 23, 2010

I'm experienced in database systems. This is the first time I'm developing a web site completely, either i will use firstly flash.

I do not know how I can put a flash application as a facebook application, which is working behind with a asp.net page [web services between]

View 1 Replies

C# - How To Invite For Facebook Application

Jan 10, 2011

We have a Facebook application. We are using graph api in ASP.net with C# 2008. We have done the authentication process (Fb Oauth Authentication). We want Facebook app invite functionality. When a user allows our app, he must see invite window. I tried a lot but I didn't find any solution. How can I do this?

View 1 Replies

Create A Facebook Application Using C#?

Sep 24, 2010

I was taking a look at this Facebook Guide Documentation, and I was wandering if it is possible to:create a Facebook application not using PHP but ASP.NET and C#?would I have access information like e-mail, username, city/location, etc?

View 3 Replies

Facebook .net Application Development?

Dec 1, 2010

Whats the best starting point for facebook application development in .net?

View 4 Replies

How To Get Data From The Facebook Or Twitter In Application

Apr 22, 2010

I am not new to the Asp.net but currently I am working on a project which needs to be integrated with facebbok and twitter.

So can I know the steps how can I get data from the Facebook or twitter in my Asp.Net application ?

What details are required to be passed on Facebook's site and which kind of API is required ?

If any one has done this kind of functionality then send the code or steps.

View 8 Replies

C# - How To Get List Of Users Who Like An Application From Facebook

Oct 15, 2010

I need to scrap the email and phone numbers of all the users who 'like' a facebook application.

for example : http://www.facebook.com/home.php?#!/apps/application.php?id=2438981128

The above application contains over 1000 users who like the application. Is there a Facebook API to accomplish this ?

View 1 Replies

Checking Of Facebook Logins In Web Application Using C#?

May 19, 2010

here i want to check facebook user id and password in my application. if facebook userid and password is correct, go to another page. if not, stay in that page only.

View 1 Replies

Vs2010 Express .net C#: Facebook .net Application?

Jan 3, 2010

Has any one able to test facebook application from facebook against their localhost machine?

View 3 Replies

Which Technology Is Best For A Facebook Application Ruby On Rails Or C#

May 13, 2010

My friend and I want to write a Facebook application. We've narrowed down the list of possible technologies to Ruby on Rails and C# with ASP. Here are the pros and cons we've thought of.

Cons:

ASP - proprietary tools like Visual Studio etc. cost (lots of) money. We both don't know ASP (although we're not bad at C#).

RoR - It's scripting so might be harder to maintain. My friend doesn't know RoR at all (but he's a fairly proficient programmer so will probably be able to pick it up quickly).

Pros:

ASP - Facebook has an official SDK for .NET.
RoR - I know RoR. It's open source, free and has fast development time.

What says the community? Is there something we haven't thought of?

View 2 Replies

Php - How To Get Facebook's Inbox Messages / Contacts Into Application

Apr 2, 2010

I want php or asp.net code for fetching facebook's inbox messages and contacts into our application when the application is added into facebook

View 1 Replies

Web Forms :: Starting Facebook Application Developement

May 20, 2010

I am new for integrating Facebook to a web application. Please anybody can guide me which dll is best and sample code to proceed.

View 1 Replies

Vs2010 Express .net C# : Facebook Beginner's Application?

Jan 3, 2010

I followed all the instructions in the following links yet I am getting the following error

Errors while loading page from application
The URL http://zsswfacebooklocal.com:1940/Default.aspx/ did not respond.

Has any one successfully got a simple asp.net application tested on facebook from their localhost on local dev machine. I did update my host file to have local ip 127.0.0.0 point to a temp domain name like zsswfacebooklocal.com

I used the following tutorials for FB asp.net application...

http://fbtutorial.qsh.eu/section1/step1.aspx

for local host...

http://www.stevetrefethen.com/wiki/Facebook%20application%20development%20in%20ASP.NET.ashx

View 1 Replies

Social Networking :: How To Create Facebook Application

May 25, 2013

I want to create Facebook application using asp.net. How i will create.

View 1 Replies

How To Add Chat Application Like Facebook In Social Networking Website

Oct 27, 2010

how can i add chat application like facebook in my social networking site?

i need to add chat application in my project just like facebook chat

how can i create in asp.net?

View 24 Replies

After Facebook Login How To Get User Information Using Javascript SDK In Application

Jun 25, 2010

I have to implement facebook login and also want to get logged in user's information like birthday,firstname, Email address.

I have already done some other stuff like recent activities etc of facebook using javascript SDK of facebook.

i am developing application in ASP.Net (C#).

How can i get user information.

View 1 Replies

C# - How To Get List Of Current Online Users Of A Facebook Application

Nov 12, 2010

I am trying to create ajax based chat for my application users; I need to get list of All currently online users of the application ..Is there a way to retrieve such a list with facebook aPI? if not how can I implement that?

View 1 Replies

C# - Facebook Application Invite, Get List Of Invited Friends?

Jan 10, 2011

I have a iFrame FB app (hosted on say mydomain.com) which shows the friend invite dialogue using the following:

<body>
<fb:serverFbml>
<script type="text/fbml">[code].....

The callback/action page that is called after friends have been successfully invited is definately being called okay, but my problem lays in retrieving the Facebook IDs of those invited. FB documentation says they should be form-posted into 'ids', so my code behind has this (C# ASP.net):

if( Request["ids"] != null )
((Site)Master).FbInviteSent(Request.QueryString.GetValues("ids"));

I have also set authorisation permissions when people add the app, so I don't believe the issue has anything to do with that.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved