Copied to clipboard

Flag this post as spam?

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


  • gh589 6 posts 26 karma points
    May 07, 2015 @ 15:00
    gh589
    0

    Invalid Scopes: publish_stream - Cannot Authorize Facebook

    Hello,

    I've installed uShare and managed to get it working with Twitter however not with Facebook. Whenever clicking "Facebook Authorize" button and fill in my Facebook credentials, I get the below error:

    Invalid Scopes: publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions

    I am using Umbraco 7.1 and uShare 7.1.1 with Azure.

    I know that publish_stream is not among Facebook API 2.3 permissions, but hopefuly there is a workaround.

    I appreciate your help!

    Best,
    M

  • Governor Technology 146 posts 551 karma points
    May 07, 2015 @ 15:29
    Governor Technology
    0

    Hi M

    At first look, it appears that uShare is still using "publishstream" instead of "publishactions" and that the former might have now finally been deprecated. I'll need to update the source and upload a new package or alternatively you can do this yourself by grabbing the source here. You'll have to change Governor.Umbraco.uShare.UI.ProviderAuthPages line 92. Or if you want, please email me at rigardt @ governor . co . uk then I can send you an updated package for 7.1.1.

    Regards,

    Rigardt

  • gh589 6 posts 26 karma points
    May 07, 2015 @ 16:15
    gh589
    0

    Hi Rigardt,

    Thank you for your quick reply. I've did this and then just replaced Governor.Umbraco.uShare.dll in bin folder by the new dll.

    I ended up with a FileNotFoundException, frankly speaking I dont know if this is the correct way or I should package someway else.

    Would be great if you can send me an updated pakage at moe.ghandour[at]outlook.com

    Thank you so much.

    M

     

  • Governor Technology 146 posts 551 karma points
    May 07, 2015 @ 16:47
    Governor Technology
    0

    Hi M

    Yes, you need to run the /BuildPackage/BuildPackage.cmd. This will create the Umbraco package with the single Governor.Umbraco.uShare.dll which you should be able to replace in the bin as above (after renaming it from the GUID filename). The difference between this and just building the solution is that this will use ILMerge to create a single Governor.Umbraco.uShare.dll by merging all the project assemblies. In your case you only had the one project's assembly, hence the exception.

    If this fails again, let me know and I'll email it over.

    Rigardt

  • gh589 6 posts 26 karma points
    May 12, 2015 @ 12:14
    gh589
    0

    Hello Rigardt,

     

     

    Thank you so much, I managed updating the package, yet still struggling with publishing the Facebook app :( this is something new for me. I tried to post from twitter to facebook just to avoid this, but apparently even twitter standard facebook app is not being able to post to my page.

     

    Best,

    M

  • Governor Technology 146 posts 551 karma points
    May 13, 2015 @ 12:48
    Governor Technology
    0

    Hi M

    It sounds like the original uShare issue is fixed at least right? I'll upload a new package at some point soon.

    Rigardt

  • gh589 6 posts 26 karma points
    May 13, 2015 @ 22:09
    gh589
    0

    Hello Rigardt,

    Yes, uShare issue fixed.

    Thank you so much!

    M

  • Guy Malfait 23 posts 74 karma points
    Feb 10, 2016 @ 15:47
    Guy Malfait
    0

    Hello ... I have the same problem ... the source code doesn't seem to be available at that link?

  • Governor Technology 146 posts 551 karma points
    Feb 10, 2016 @ 15:52
    Governor Technology
    0

    Hi Guy

    The source should be at that link: https://ushare.codeplex.com/SourceControl/latest

    Be sure to pick the correct branch depending on your version please.

    Rigardt

  • Guy Malfait 23 posts 74 karma points
    Feb 10, 2016 @ 17:05
    Guy Malfait
    0

    Hello ... I managed to find the source code. Thank you.

    Unfortunately, I can't run buildpackage.cmd. I think it's because I have VS2013 installed.

    Guy

  • Governor Technology 146 posts 551 karma points
    Feb 10, 2016 @ 17:22
    Governor Technology
    0

    Hi Guy

    VS2013 should be fine. What errors are you getting when trying to build?

    Rigardt

  • Guy Malfait 23 posts 74 karma points
    Feb 10, 2016 @ 18:51
    Guy Malfait
    0

    Build FAILED.

       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\BuildPackage\BuildPackage.msbuild" (default target) (1) ->
       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.sln" (default target) (2) ->
       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.Installer\Governor.Umbraco.uShare.Installer.csproj" (default target) (5) ->
         C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.Installer\Governor.Umbraco.uShare.Installer.csproj(278,3): error MSB4019: The imported project
        "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and
        that the file exists on disk.
    
    
       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\BuildPackage\BuildPackage.msbuild" (default target) (1) ->
       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.sln" (default target) (2) ->
       "C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.UI\Governor.Umbraco.uShare.UI.csproj" (default target) (6) ->
         C:\Users\gm10\Downloads\ushare-c7d0d9b6d988979b27f9ffbd9fd65db55786ee3a\Governor.Umbraco.uShare.UI\Governor.Umbraco.uShare.UI.csproj(305,3): error MSB4019: The imported project "C:\Program F
       iles (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file
        exists on disk.
    
    0 Warning(s)
    2 Error(s)
    
  • Guy Malfait 23 posts 74 karma points
    Feb 10, 2016 @ 18:56
    Guy Malfait
    0

    I have those missing files on my PC, but they are in a /v12.0 directory instead of v11.0

  • Governor Technology 146 posts 551 karma points
    Feb 11, 2016 @ 11:08
    Governor Technology
    0

    Hi Guy

    Can you try copying the missing file into v11.0 and see if that fixes the build?

    Rigardt

  • Guy Malfait 23 posts 74 karma points
    Feb 11, 2016 @ 12:28
    Guy Malfait
    0

    Yes that actually worked.

    However, after clicking all the Facebook OK's (which I didn't get before), I was still presented with an error ...

    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) +271
           Governor.Umbraco.uShare.UI.ProviderAuthPages.uShareFacebook.Page_Load(Object sender, EventArgs e) +474
           System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
           System.Web.UI.Control.OnLoad(EventArgs e) +79
           Umbraco.Web.UI.Pages.BasePage.OnLoad(EventArgs e) +15
           System.Web.UI.Control.LoadRecursive() +130
           System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2822
    

    I'm not sure about my faceboot app settings. I tried to follow your guide, but the Facebook Developer interface has changed a bit since you wrote your guide, I think.

    Thanks for your help.

  • Governor Technology 146 posts 551 karma points
    Feb 12, 2016 @ 12:14
    Governor Technology
    0

    Hi Guy

    I've removed the legacy Facebook permission from the package and uploaded some new versions. Please grab the correct version and give this a try and let me know if this fixes the issue.

    Best, Rigardt

  • Guy Malfait 23 posts 74 karma points
    Feb 13, 2016 @ 15:26
    Guy Malfait
    0

    Hi Rigardt, thanks for uploading the newest version.

    I uninstalled that previous package, and installed this one, but I still get the same error message (Facebook access token not authorized).

    Do you happen to know what app permissions i should set on Facebook?

    enter image description here

    Also, the FB user I am using, is also the Admin for the app, could that be a problem?

Please Sign in or register to post replies

Write your reply to:

Draft