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:
xxx /app_plugins/ushare/usharefacebook.aspx
The handler is accessible publicly just for clarification. Any help on this is much appreciated.
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
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.
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.
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.
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:
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.
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.
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.
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:
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:
The handler is accessible publicly just for clarification. Any help on this is much appreciated.
Cheers.
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.
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.
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.
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.
If you do have any discoveries on this, please share! I will post in here any findings also.
Cheers
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.
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.
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!
I also manage rights of the application at another place than this popup.
Please get the admin rights to manage them.
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 ;)
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:
I test it with 3 account, only one set the value of AccessTokenValue2, but i also have an authorization unavailable.
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.
Now I have the same problem's... someone have the some solution ?
any solution for this please ? :(
thank you
AS
same issue - any solution?
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
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
Hi and sorry for my late answer.
It looks like that. You have to add the permissions there (App Review).
Best regards, Manuel
is working on a reply...