How To Connect To Facebook From A C# Webservice

Dec 15, 2010

I want to create a webservice that allows user to connect to Facebook. In my webservice, there is a method named "connect" which requires 2 parameters: the username and password (of the Facebook account).

I have to use this username and password to connect to Facebook from the webservice. After that, I want to allow the user to post on their walls...Is is it possible to connect to Facebook using a webservice?

I tried a lot, and I can login to Facebook account, but I can't get the sessionkey and userid.

How can I integrate Facebook in an ASP.NET webservice?

View 2 Replies


Similar Messages:

C# - Unattended Login To Facebook Using Facebook Connect?

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

How To Login Directly Into Facebook Using Facebook Api Through Webservice Using C#

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

Unable To Connect Facebook ?

Sep 16, 2010

I'm using the following step by step guide to connect to Facebook Connect:

http://msdn.microsoft.com/en-us/windows/ee702803.aspx

However I have a problem at the 'Authentication and Initiating a Session' stage.

When I go through the steps, I click on 'Connect' in my browser, which opens a popup, where I login to Facebook and 'Allow' the application to access my account. I'm then redirected to the filename I specify in thw 2nd parameter of the javascript function 'FB.init'.

However, this page then displays:

"Please sign-in with Facebook."

Why is this happening? I'm developing this on localhost,

View 2 Replies

Logout From Facebook Connect?

May 21, 2010

i can't logout a user when it's connected through facebook connect. I'm using the facebook developer toolkit. Anyone know how to "disconnect" a user ?

View 2 Replies

Api - Using Facebook Connect Auth.RevokeAuthorization?

Apr 2, 2010

how revoking authorization works in the ASP.NET Toolkit. I've tried issuing the following:

ConnectSession connect =
new ConnectSession(FacebookHelper.ApiKey(), FacebookHelper.SecretKey());

Auth x = new Auth(fbSession);
x.RevokeAuthorization();

But I get an object reference error during the RevokeAuthorization call. Here's the call definition.

View 1 Replies

Facebook API, Using FB Connect On Email Address?

Jan 25, 2010

ASP.Net C# and FaceBook Connect.

I'm using Facebook connect on my site. If a new user connects through FB i create an account for them and all is fine. What i would also like to do is check to see if they already have a registered account.

So if someone connects that has not logged in but has an account i would like to be able to locate the account in my application a link it. I hoping this could be done via the email address?

View 1 Replies

Facebook Connect And Change Status?

Oct 8, 2010

Facebook connect and change status?

View 4 Replies

Finding MVC With Facebook Connect Template Project?

Dec 19, 2010

I'm looking for template project that uses Facebook Connect instead of ASP.NET Membership service with ASP.NET MVC 1.0/2.0/3.0. It should support connect (login) and logof and storing user data to the database. Is there something like that?

And second question: Would YOU like to participate in building such tamplate? (if similar project doesn't exist)

View 1 Replies

How To Merge The Facebook Connect With Existing Website's Authentication

Jan 7, 2011

Im testing something on a MojoPortal where i need to seperately add a Facebook connect button and make the user get registered with the website's registration! How do i do that?

View 2 Replies

C# - Facebook Connect - How To Post To User's Wall Using Graph API

Jul 26, 2010

I've integrated my website with Facebook Connect, authorization/single-sign on all working great.

Now im trying to post something to the user's wall, which im having some problems with.

First of all, im using the "old" JavaScript API (FeatureLoader.js).

These are the Graph API URL's im using:

private const string UserDetails_Url = @"https://graph.facebook.com/{0}?access_token={1}";
private const string Feed_Url = @"https://graph.facebook.com/{0}/feed?access_token={1}";
private const string TokenExchange_Url = @"https://graph.facebook.com/oauth/access_token?{0}";

I'm using the TokenExchange_Url URL to receive the unique user OAuth token to make calls with.

This is working fine, because a) i receive the token back, and b) i can issue HTTP Get Requests to the Graph API (i.e UserDetails_Url) and it works fine.

But, i cannot Post to the User's wall using the Feed_Url.I'm pretty sure the issue is i haven't got the appropriate user permissions to post to a wall (i.e facebook-side setting).

Now, i realise i can use the fbPublish API method client-side to do this, but i want to do it server-side with the Graph API.

I wont bother showing my code which attempts the call to the Graph API to post to the user's wall, as its pretty straightforward (HttpWebRequest, set method to "POST', set content type/length, write bytes to Stream, etc).

I think the problem is i need the user to grant my aplpication "publish_stream" extended permissions.

The Facebook Graph API doco says to do this in your authorization request:

https://graph.facebook.com/oauth/authorize?
client_id=...&
redirect_uri=http://www.example.com/callback&
scope=user_photos,user_videos,publish_stream

Which confuses me because im using the following URL to get the OAuth token:

https://graph.facebook.com/oauth/access_token?bunchofqsparams

Am i using the wrong Token Exchange URL? Why is there two different URL's to seemingly get the same piece of information?

Yes - i have read the Facebook API doco (numerous times), and yes i have read other similar SO questions, but they all result in using the client-side API to publish to wall, i want to do it server side.

For the actual "Facebook Connect" button, i'm using the standard FBML:

<fb:login-button length="long" size="medium" autologoutlink="false" background="light" onlogin="facebookLogin('/login')" class=" fb_login_not_logged_in FB_login_button FB_ElementReady"><a id="RES_ID_fb_login" class="fbconnect_login_button"><img id="RES_ID_fb_login_image" src="http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif" alt="Connect"></a></fb:login-button>

When i click this (and not logged into Facebook), it pops up a window which the user can login. But it doesnt have the "Request Extended Permissions" dialog - shouldnt it? Or is that another popup i need to manually trigger?

So to sum up, here are my questions:

How do i grant extended permissions to publish to the user's wall?What is the correct URL for obtaining an OAuth token?Is there a definitive source for showing how to post to a user's wall using server-side Graph API calls?

View 1 Replies

WCF / ASMX :: Connect Webservice From Other Machine?

Oct 15, 2010

i was hosted search.asmx webservice in one machine .. i am trying to access that webservice from other machine .. but i couldn get that service and its methods.. it shows error like " The request failed with HTTP status 401: Unauthorized."..

View 3 Replies

AJAX :: MaskEditTextBox Javascript Not Working After Connecting To Facebook Connect?

Aug 25, 2010

I noticed that whenever my clients connect their accounts to my application, the Sys.UI returns null and the MaskEditTextBox is not longer showing the mask ... in other words is not working.

Did anybody have been thru this kind of scenario?

View 2 Replies

AJAX :: Modalpopup, Webservice Connect Label And Textbox?

Jul 26, 2010

i have created webservice, return xml.I configurated modalpopup with button on gridview.I would need to connect label and textbox in panel of modalpopup to xml returned from webserice.

View 3 Replies

How Can We Implement The "Connect To Facebook" Option In Website

Dec 16, 2010

how to get the facebook login service?Is it free or any payment mode.I would like use this in my site.

View 3 Replies

Social Networking :: How To Access Facebook Page At Dialog Of Facebook Send Button

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

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?

View 1 Replies

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

Social Networking :: Get Facebook Profile ID And Username Using Facebook JavaScript SDK

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

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 :: Get Facebook User Language Using Facebook API?

May 7, 2015

I would like to know how to get the Facebook user language. 

View 1 Replies

Web Forms :: Connect To Rss On Original Site If Connect Successfully Use Rss ?

Apr 23, 2010

i want to conncet to rss orignal website if connect is successfully write the rss to xml file and read from orignal website ,else connect failed read xml file (last information in rss original website) and show it how can do it .

View 1 Replies

Displaying Facebook Popups With .net Facebook SDK?

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

Social Networking :: Is Like Box Of Facebook Page Automatically Send Change To Facebook Page Wall

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

Social Networking :: Facebook Send Dialog At Click Of Facebook Send Button

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







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