Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ventsislav Konakchiyski 4 posts 24 karma points
    Jul 14, 2015 @ 10:53
    Ventsislav Konakchiyski
    0

    Can't save token/user details in the backoffice

    I have a problem. This used to work fine until yesterday and when I tried to reauthorize from the backoffice I couldn't save the new details. It just goes to blank popup (http://xxxxxxx.xxx/umbraco/Skybrud/Social/FacebookAuth.aspx?code=AQDJsIPUwwEVWEZhYzmCx0VGP3fX0zuuUu5RmivNs5i9aXTNZa2eDCvS0K4w9Vb9380IqQHiOCqvmY6pioVhhfrSnTErWEuZHn1nUzL5ft8wYjPFfLa4xH9iFHwRxSBQcWstkfZ8iYJu-xT8ULSJCxhgwggr9mKpwwv-us1naVQPdooUhYsXuX7CyUi-VR9xwnLpTz2cbgfZ-h2b1e2h4Au8K2PgokvqkPedIJDoZ6uaVzZ7ESYpsn0UL64msSr844dKV9WlUHPHSFcS6r5yq9G194uYjOnJpcZtBmH9Wj5jT2MSa6LOYj2UbyxVrA&state=13265%7CbodypropfacebookOauthFacebookOAuth#=_) and is not saved in the backoffice.

    We are using: Umbraco v6.2.4 (Assembly version: 1.0.5394.15649) Skybrud.Social.Umbraco 1.0.0

    Is there any known problem and if not, how do I go about fixing this.

    Thanks in advance

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Jul 14, 2015 @ 11:15
    Anders Bjerner
    0

    Hi Ventsislav,

    I'm not aware of any current issues, but I haven't looked into this package for a while, as I'm no longer actively maintaining the package.

    I will see if I can find the time to look into your issue ;)

  • Ventsislav Konakchiyski 4 posts 24 karma points
    Jul 14, 2015 @ 13:36
    Ventsislav Konakchiyski
    0

    It is probably a one off, because it used to work fine until yesterday and we haven't changed anything in a while.

    What's the best way to debug it while trying to Authorize?

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Jul 14, 2015 @ 14:03
    Anders Bjerner
    0

    I can't remember a reason as to why the page would be blank, so I'll have to look into that.

    Anyways, with a bit of C# you can test the authorization code ("code" in the query string). The one in your example has probably expired by now, but if you try to re-authenticate, you can test the code with:

    FacebookOAuthClient fb = new FacebookOAuthClient {
        AppId = "1234",
        AppSecret = "5678"
    };
    
    string token = fb.GetAccessTokenFromAuthCode("xxxx");
    

    If it fails, it should throw an exception with some details on why it fails.

  • Ventsislav Konakchiyski 4 posts 24 karma points
    Jul 14, 2015 @ 16:08
    Ventsislav Konakchiyski
    0

    Shortly after I changed the code. Rather than using a data type and a property to get auth token, I get it using "/oauth/accesstoken?granttype=clientcredentials&clientid={0}&client_secret={1}", which gives me sufficient permissions for what I need.

    Thanks for the swift replys nonetheless.

Please Sign in or register to post replies

Write your reply to:

Draft