Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:08:07+00:00 2026-05-28T00:08:07+00:00

The facebook login using the Facebook C# SDK was working, but now is not!

  • 0

The facebook login using the Facebook C# SDK was working, but now is not! What happened?

I get the user to log in using the Javascript SDK. Then, when I get back to the page, I cannot find the session when I don’t ask for the permissions:

(Using only the attribute)
[FacebookAuthorize(
        LoginUrl = "/Admin/Facebook/Login")]

When the attribute is as it should be, it simply doesn’t enter the action method:

[FacebookAuthorize(
        LoginUrl = "/Admin/Facebook/Login",
        Perms = "publish_stream,create_event,email,offline_access,read_stream")]

Before I send the user to the action method, I verify using JavaScript that the user is actually logged in and it is always true:

if (response.session) {
        html = response.session.access_token;

        // Tests if necessary permissions are set.
        if (response.perms) {
            var perms = response.perms;

            if (perms.indexOf("publish_stream") != -1
                && perms.indexOf("email") != -1
                && perms.indexOf("create_event") != -1
                && perms.indexOf("offline_access") != -1
                && perms.indexOf("read_stream") != -1

What do you think the problem is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:08:07+00:00Added an answer on May 28, 2026 at 12:08 am

    Have you tried using the latest version of the SDK?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly
I am using the Facebook Javascript SDK to create a login button using the
I am using Simple example from the Facebook SDK just to get the user
i am using facebook javascript SDK for login button in my website it is
Currently, I am working with facebook login using facebook c# SDK. Using this SDK
When coming back from the Facebook JS SDK login() call I get a cookie
Right now I am able to detect a user's login state using the Javascript
I'm using the Facebook JavaScript SDK to implement login for my site. I've already
I am using Facebook SDK in hackbook and tried to login and do all
Using the PHP sdk I'm signing users into my site with Facebook log in.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.