Copied to clipboard

Flag this post as spam?

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


  • Danny Brady 17 posts 112 karma points
    Feb 29, 2016 @ 18:38
    Danny Brady
    0

    uShare Facebook Authorization Problem in Umbraco 7

    Hello,

    I am currently using Umbraco 7.3.4 and uShare and the latest version of uShare from the repository.

    https://ushare.codeplex.com/SourceControl/latest

    Particularly with the following update:

      public static readonly string[] ScopeNeeded = { "manage_pages", "publish_actions" };
    

    I am getting the pop up displaying the authorization, I believe the failure is on the 3rd step as uShareAuthorizations table has a value for AccessTokenValue1 but AccessTokenValue2 is NULL. The other columns are correct (ServiceProviderId & UmbracoUserId)

    Here are the app settings:

    enter image description here

    enter image description here

    xxx /app_plugins/ushare/usharefacebook.aspx

    The handler is accessible publicly just for clarification. Any help on this is much appreciated.

    Cheers.

  • MUSSY Thomas 8 posts 78 karma points
    Mar 02, 2016 @ 10:10
    MUSSY Thomas
    0

    Hi,

    I got same problem, and I have seen that i'm in umbraco 7.3.7 and the package is just release for 7.2.x.

    In wich version are you?

    Cheers.

  • Danny Brady 17 posts 112 karma points
    Mar 02, 2016 @ 12:51
    Danny Brady
    0

    I am using the latest branch/trunk which is for 7.2.x yes, but due to the site being built in 7.3 and uShare becoming an addition to the project it is important I get this package working on this version of Umbraco, or find an alternative solution.

    I need to know if it is possible or if others have got it working successfully like when the permissions changed to "publishactions" from "publishpages" - This fix was found on the forum, once applied to the source and new zip built from the bat it worked on that instance. So I guess I have my fingers crossed for similar fix! ha

    Cheers.

  • MUSSY Thomas 8 posts 78 karma points
    Mar 02, 2016 @ 15:55
    MUSSY Thomas
    0

    Yeah I hope this too.

    On my way I found that the request on GetPageAccessToken search field accesstocken but there is no field with this name or it is not accessible. Here is the list of fields for applications on facebook, and ther is no accesstocken.

  • Danny Brady 17 posts 112 karma points
    Mar 02, 2016 @ 16:59
    Danny Brady
    0

    I have actually sent the developers a message privately to see if they will offer any advice on this.. Lets hope so! I do not want to have to move to an older version of Umbraco just for this package if possible.

    Regards to the accesstoken, it states that it is used for the permissions of the app to view all fields and presumably the actions required.

    Permissions

    Public fields are visible without any access token. An app access token can be used to view all fields for an app.

    If you do have any discoveries on this, please share! I will post in here any findings also.

    Cheers

  • MUSSY Thomas 8 posts 78 karma points
    Mar 03, 2016 @ 10:31
    MUSSY Thomas
    0

    Unfortunatly i tried on the graph API explorer to test with an access_token, and the field does not exist anymore.

    I always have this response: (#100) Tried accessing nonexisting field (access_token) on node type (Application)

    It's the same result with the user ID that replace app ID.

  • MUSSY Thomas 8 posts 78 karma points
    Mar 03, 2016 @ 11:03
    MUSSY Thomas
    0

    Okay, i'm a fool, i was working with the profile ID on ushare.config, you have to create a page linked to your profile and found its id.

    I don't know if it's your problem but in this case: be carefull, that's not your profile page on the settings but the page you created.

  • Danny Brady 17 posts 112 karma points
    Mar 03, 2016 @ 11:23
    Danny Brady
    0

    Hi mate, thanks for that. I am using the Facebook Page ID of the page I want uShare to post to. However it is for a client and not a page I manage personally on my Facebook account. I wonder if this is the problem? But isn't that the whole idea of the access and permissions.

    I will try against a Facebook page I have access to manage a little later and let you know if that worked.

    Cheers!

  • MUSSY Thomas 8 posts 78 karma points
    Mar 03, 2016 @ 14:57
    MUSSY Thomas
    0

    I also manage rights of the application at another place than this popup.

    Please get the admin rights to manage them.

  • MUSSY Thomas 8 posts 78 karma points
    Mar 03, 2016 @ 16:30
    MUSSY Thomas
    0

    I'm disgusted, I can now enable Facebook but can't share, it says: facebook not authorized, please ensure.

    I got a 403 error... Idon't know what to do ;)

  • Danny Brady 17 posts 112 karma points
    Mar 03, 2016 @ 18:43
    Danny Brady
    1

    Yes I can authorize. Can you check your uShareAuthorizations table and see if you have values set for: AccessTokenValue2 this is the null entry for me.

    But ultimately it results in this, once Authenticated off the home node and trying to use the Share button from the datatype: enter image description here

  • MUSSY Thomas 8 posts 78 karma points
    Mar 04, 2016 @ 11:01
    MUSSY Thomas
    0

    I test it with 3 account, only one set the value of AccessTokenValue2, but i also have an authorization unavailable.

  • MUSSY Thomas 8 posts 78 karma points
    Mar 07, 2016 @ 17:08
    MUSSY Thomas
    0

    Hi Danny,

    I search on code and found that the problem may come from Syste.security.Cryptography and the Unprotect method, that the way that causes the Facebook authorization unavailable from FacebookSharer class.

    Could you takecheck by your side in paralel.

    Regards.

  • Robson Nascimento 10 posts 90 karma points
    Apr 28, 2016 @ 16:13
    Robson Nascimento
    0

    Now I have the same problem's... someone have the some solution ?

  • Angelo 103 posts 226 karma points
    Jul 19, 2016 @ 20:56
    Angelo
    0

    any solution for this please ? :(

    thank you

    AS

  • lele 102 posts 429 karma points
    Sep 01, 2016 @ 12:20
    lele
    0

    same issue - any solution?

  • lele 102 posts 429 karma points
    Oct 10, 2016 @ 14:19
    lele
    0

    Hi guys

    I found it:

    Please verify: The AccessTokenValue2 should be populated (check on the SQL ushare table). If not, this would probably mean that somewhere in the authorisation process, something went wrong, and didn't complete the authorisation.

    Please verify it with the graph API explorer if you get the access_token field on you facebook-app.

    https://developers.facebook.com/tools-and-support/

    The facebook-app API permissions should be set: manage pages and publish actions (on the App Review settings)

    I hope that helps.

    BR Manuel

  • J 410 posts 766 karma points
    Jul 06, 2017 @ 11:08
    J
    0

    How do i set API permissions to manager pages and publish actions? I went into App Review and under Approved Items I see, email, publicprofile and userfriends as options which only are highlighted once i select the option "Make DevTest public". Am i missing something?

    I have values within the [AccessTokenValue1],[AccessTokenValue2] columns in the uShareAuthorizations table.

    Thanks

  • lele 102 posts 429 karma points
    Jul 18, 2017 @ 06:10
    lele
    0

    Hi and sorry for my late answer.

    enter image description here

    It looks like that. You have to add the permissions there (App Review).

    Best regards, Manuel

Please Sign in or register to post replies

Write your reply to:

Draft