Facebook connect
-
I use the following code in order to conncet my asp.net website to facebook string appId = "xxx"; string[] extendedPermissions = new[] { "publish_stream", "offline_access" }; var oauth = new FacebookOAuthClient { AppId = appId }; var parameters = new Dictionary<string, object> { { "response_type", "token" }, { "display", "popup" } }; if (extendedPermissions != null && extendedPermissions.Length > 0) { var scope = new StringBuilder(); scope.Append(string.Join(",", extendedPermissions)); parameters["scope"] = scope.ToString(); } var loginUrl = oauth.GetLoginUrl(parameters); Response.Redirect(loginUrl.AbsoluteUri); but when I run this I get a login page(full page altough I set the display property to "popup"), and after login I redirected to a page which is not my website page(http://www.facebook.com/connect/login\_success.html#access\_token=xxx;expires\_in=0). The page includes the word "succeed" only...
-
I use the following code in order to conncet my asp.net website to facebook string appId = "xxx"; string[] extendedPermissions = new[] { "publish_stream", "offline_access" }; var oauth = new FacebookOAuthClient { AppId = appId }; var parameters = new Dictionary<string, object> { { "response_type", "token" }, { "display", "popup" } }; if (extendedPermissions != null && extendedPermissions.Length > 0) { var scope = new StringBuilder(); scope.Append(string.Join(",", extendedPermissions)); parameters["scope"] = scope.ToString(); } var loginUrl = oauth.GetLoginUrl(parameters); Response.Redirect(loginUrl.AbsoluteUri); but when I run this I get a login page(full page altough I set the display property to "popup"), and after login I redirected to a page which is not my website page(http://www.facebook.com/connect/login\_success.html#access\_token=xxx;expires\_in=0). The page includes the word "succeed" only...
benams wrote:
The page includes the word "succeed" only...
Then what can we do? It's very hard to get response from CP about question related to FB. So you canask these question in FB forum then you can get more response. http://forum.developers.facebook.net/[^] Thanks
Parwej Ahamad ahamad.parwej@gmail.com
-
benams wrote:
The page includes the word "succeed" only...
Then what can we do? It's very hard to get response from CP about question related to FB. So you canask these question in FB forum then you can get more response. http://forum.developers.facebook.net/[^] Thanks
Parwej Ahamad ahamad.parwej@gmail.com
-
I use the following code in order to conncet my asp.net website to facebook string appId = "xxx"; string[] extendedPermissions = new[] { "publish_stream", "offline_access" }; var oauth = new FacebookOAuthClient { AppId = appId }; var parameters = new Dictionary<string, object> { { "response_type", "token" }, { "display", "popup" } }; if (extendedPermissions != null && extendedPermissions.Length > 0) { var scope = new StringBuilder(); scope.Append(string.Join(",", extendedPermissions)); parameters["scope"] = scope.ToString(); } var loginUrl = oauth.GetLoginUrl(parameters); Response.Redirect(loginUrl.AbsoluteUri); but when I run this I get a login page(full page altough I set the display property to "popup"), and after login I redirected to a page which is not my website page(http://www.facebook.com/connect/login\_success.html#access\_token=xxx;expires\_in=0). The page includes the word "succeed" only...
Follow the forum guidelines and format your code, and you may receive more responses. If you can't follow the guidelines why should we read your question or help?
I know the language. I've read a book. - _Madmatt
-
benams wrote:
The page includes the word "succeed" only...
Then what can we do? It's very hard to get response from CP about question related to FB. So you canask these question in FB forum then you can get more response. http://forum.developers.facebook.net/[^] Thanks
Parwej Ahamad ahamad.parwej@gmail.com
Parwej Ahamad wrote:
It's very hard to get response from CP about question related to FB
Even more difficult when the OP doesn't follow the forum guidelines and format any code posted.
I know the language. I've read a book. - _Madmatt
-
Parwej Ahamad wrote:
It's very hard to get response from CP about question related to FB
Even more difficult when the OP doesn't follow the forum guidelines and format any code posted.
I know the language. I've read a book. - _Madmatt
Yes Mark, you are absolutely right.
Parwej Ahamad ahamad.parwej@gmail.com