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;
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 ;)
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?
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.
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 underlyingSkybrud.Social
. I'll try to dig up some examples for that as well ;)I think I'll wait for this weekend's new release. Thanks.
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.
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
is working on a reply...