Copied to clipboard

Flag this post as spam?

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


  • Craig Richards 17 posts 75 karma points
    May 11, 2014 @ 11:54
    Craig Richards
    0

    Facebook access token not authorized.

    Hi,

    Hoping I can get some assitance with this pelase?

    I've autorised my app on the Facebook side and have the App ID and App Secret. Every time I try and autorise uShare, I get an error after I log into Facebook via the pop up.

    Error is as follows:

    Server Error in '/' Application.

     

    Facebook access token not authorized.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: Governor.Umbraco.uShare.Exceptions.NotAuthorizedException: Facebook access token not authorized.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [NotAuthorizedException: Facebook access token not authorized.]

       Governor.Umbraco.uShare.OAuth2.ServiceProviderConsumers.FacebookConsumer.GetPageAccessToken(String pageUsernameOrId, String userAccessToken) +264

       Governor.Umbraco.uShare.UI.ProviderAuthPages.uShareFacebook.Page_Load(Object sender, EventArgs e) +474

       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51

       System.Web.UI.Control.OnLoad(EventArgs e) +92

       Umbraco.Web.UI.Pages.BasePage.OnLoad(EventArgs e) +14

       System.Web.UI.Control.LoadRecursive() +54

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447

     

    Any idea's on this as it's driving me up the wall?

    Thanks,
    Craig

     

  • Craig Richards 17 posts 75 karma points
    May 11, 2014 @ 11:59
    Craig Richards
    0

    Okay, I've not got it sorted....! I had 'App Secret Proof for Server API calls' set to true.

    One more thing, when sharing a blog post for instance uShare doesn't post any images or text to Facebook, just a link?

  • Governor Technology 146 posts 551 karma points
    May 12, 2014 @ 10:26
    Governor Technology
    0

    Hi Craig

    Glad you sort the issue. I'm not sure, but can't recall I've seen that option when doing the documentation, so might be worth making a note of this somewhere.

    Yes, uShare will only share the Umbraco page URL in it's current version. If required, you should be able to easily change the format of the content being posted/shared by updating the source as necessary which can be found here: https://ushare.codeplex.com/releases/view/111592.

    However, Facebook does support Open Graph, which means if your page source has the correct Open Graph tags, Facebook will pick these up automatically (e.g. title, description, image etc). You can test this for your page by pasting the URL here: https://developers.facebook.com/tools/debug/

    Hope this helps.

    Regards,

    Rigardt

Please Sign in or register to post replies

Write your reply to:

Draft