Copied to clipboard

Flag this post as spam?

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


  • badigard 7 posts 38 karma points
    Aug 11, 2015 @ 13:42
    badigard
    1

    Help with getting OAuth information

    Hi, Since I opened a v2.4 facebook developer account, I deleted "readstream" from client.GetAuthorizationUrl(state, "readstream", "userstatus", "useraboutme", "userphotos").

    I added a new Skybrud.Social.Facebook.OAuth property to home-page and the authorization process went ok.

    When I tried to get OAuth info - I get null: FacebookOAuthData facebook = Model.GetPropertyValue("facebook") as FacebookOAuthData;

    Plus, "FacebookMeResponse" and "FacebookPostSummary" are not recognized (following these example: https://our.umbraco.org/projects/website-utilities/skybrudsocial-for-umbraco-7/ )

    My goal is to let a user a login with his facebook account and pull his info to enable creation of an Umbraco Member.

    Appreciate any help. Thanks.

  • Anders Bjerner 476 posts 2885 karma points MVP 6x admin c-trib
    Aug 12, 2015 @ 19:37
    Anders Bjerner
    0

    I'm not sure whether the forum messes with my examples posted for this package. They are no longer up-to-date (and I'm pretty sure I've updated them a few times).

    I will probably make a new release a new version of this package over the weekend, so I'll look into updating the examples as well.

    Regarding getting an instance of FacebookOAuthData, your code example should work if there is a property with that name. What do you get if you just write @Model.GetPropertyValue("facebook")?

    Anyways, this package (Skybrud.Social for Umbraco 7) is focusing on users adding their OAuth data via the backoffice. If you're trying to build a login in the frontend, you should just use the underlying Skybrud.Social. I'll try to dig up some examples for that as well ;)

  • badigard 7 posts 38 karma points
    Aug 14, 2015 @ 07:37
    badigard
    0

    I think I'll wait for this weekend's new release. Thanks.

  • badigard 7 posts 38 karma points
    Aug 16, 2015 @ 15:04
    badigard
    0

    Hi, Thank you for Skybrud.Social 4.9.1 package. I've download it and added to my project.

    I am trying to add a facebook login in the front and check if the user is already is signed a member in Umbraco - and if not - create new member for him.

    Can you add an code sample in general how to implement the login phase using this package?

    Thanks.

  • Anders Bjerner 476 posts 2885 karma points MVP 6x admin c-trib
    Aug 16, 2015 @ 19:34
    Anders Bjerner
    0

    I don't have an example for that of the moment, but I will try digging something up.

    Meanwhile you can have a look at this snippet (it handles authentication in a standard ASP.NET web forms page):

    https://gist.github.com/abjerner/70c1b2af2b3ea480e353

Please Sign in or register to post replies

Write your reply to:

Draft