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,
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?
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?
I am trying to check the connection with one of active IBM MQ's but I am getting this error.. Unable to load DLL 'amqxcs2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I am using the following code..
Included amqmdnet.dll and amqmdxcs.dll in bin and gave the same reference to the project.
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)
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?
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:
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:
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?
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.
I am using an Visual studio 2010 ultimate edition. And here i have getting an error " unable to connect to the asp.net development server " while i try to run the Web Application by pressing F5 key from Web Application Project. Can any tell me whats the problem and how can i resolve it.
so this is my first Solution using the Entity Framework (EF). Here are my steps so far:
1) Created Database named: BSA with an owner of username/password (AspNetServicesUser/password) 2) Created Entity Data Model (EDM) in a separate project (contained within the same solution) 3) Created an ASP.NET Web Application with basic functionality (new project within the same solution) 4) Added Reference to the EDM in Web App and added Connection String to the EF 5) Decided I wanted ASP.NET Membership added to the Web App 6) Configured SQL Server for Application Services using aspnet_regsql.exe on BSA database
Now, I need to know:
a) How do I create the connectionString for the Web.config file in the WebApp?
Errors I receive:
I get this error using the ASP.NET Configuration Tool under the "Security" Tab:
Login failed for user 'AspNetServicesUser'.
I get this error using the ASP.NET Configuration Tool under the "Provider" Tab --> Select a single provider for all site management data --> Test
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
I have domain on the [URL]. I have create the database over there.I am able to connect to the database from [URL] site with specified user name and password. but when i am going to use same information in my connection string in my asp.net web application on local machine it is showing "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
When I run in visual studio I am able to connect to openid provider, But if I host app in IIS ,I am not able to connect to openid provider. (I am getting error at CreateRequest)
what settings has to be done in IIS so that I can connect to the Openid Provider. Below is the error I am getting
[InvalidOperationException: Sequence contains no elements] System.Linq.Enumerable.First(IEnumerable`1 source) +336 DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier userSuppliedIdentifier) [ProtocolException: No OpenID endpoint found.] DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier userSuppliedIdentifier)
Just beginning to set up and get into MVC and I have immediately run into a problem...
I opened a new MVC project in Visual Studio 2008 Pro, tried to run the basic template project, chose the logon/register page, enterered my details and got a runtime error message in AccountsModels.cs:
Unable to connect to SQL Server database Do I need to download a db from somewhere first, have I missed a step out the install ?
We are upgrading from an environment where the development web server, the SQL Server 2005, and SQL Server data are all on the same machine, a Windows XP Machine. We are upgrading to having the web server on one Windows 2008 server, the SQL Server on a 2nd Windows 2008 Server, and to Server to a Windows 2008 server, nd the data on a SAN.
I'm a bit of a beginner to ASP.NET and I'm having a trouble connecting to SQL Server Express.
I'm using Windows 7 and have tried connecting to my database using both Windows authentication and a user account I setup in SQL Server.
I've include the code I'm using below (using the account I setup in SQL Server):
[Code]....
The error I get is that it can't login using the login details provided
Just wondering if there's anything I'm not doing something properly? This is the first time I'm trying to connect to a database using Windows 7/SQL Server Express so hoping someone with a bit more experience can give me a hand!
i have used the following connection string, but it only works for localhost, when i am trying to upload it on server it gives error.,error is specied below..it urgent plz resolve as soon as possible...
<add name="connectionname" connectionString="Server=servername;port=3307;User Id=xyz;Password=abc; database=databasename"/> Error - Unable to connect to any of the specified MySQL hosts. Exception Details: MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts.
i have been trying to connect to SQLserver from ASP.net web developer in an n-tier architecture.But it shows this error in conncetion
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I am working on a project where one of the requirements is to re-write an ASP.NET application. The old ASP.NET application was based on .NET Framework 1.1. The new ASP.NET application is based on .NET Framework 3.5.
One of the functions in the old web application was the ability to send email. The old code used the System.Web.Mail.SmtpMail class, whereas the new web application uses the System.Net.Mail.SmtpClient class.
In testing this on our development servers, everything worked fine. However, we have two beta clients testing out our software, and they both run into problems sending email in the new web application.
The specific exception is as follows:
"Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it"
Both the old and new ASP.NET application are on the same server (Windows Server 2003). They both are using the same Exchange mail server. Why is it that the old ASP.NET application can successfully send email, but the new one cannot?
I looked at the old code, and it did not use any form of authentication, it just specified the sender's email address, the recipient's email address, the subject, body, and server, and sent the message. I did the same thing in the new code, with the only difference being that I used the SmtpClient class.
Below is a code snippet from the new ASP.NET application:
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(messageTo); mail.From = new MailAddress(messageFrom); mail.Subject = messageSubject; mail.Body = messageBody; SmtpClient client = new SmtpClient(); client.Host = smtpServer; client.Send(mail);