Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Can't get access token for Power Platform Custom Connector

(0) ShareShare
ReportReport
Posted on by

Hi experts,

My client wants to use a flow to access the data from a Facebook page.

When following the instruction from here at Github and Custom Facebook Connector from Daniel Christian , I got an error message:

{"error":{"message":"(#200) If posting to a group, requires app being installed in the group, and \\\n either publish_to_groups permission with user token, or both manage_pages \\\n and publish_pages permission with page token; If posting to a page, \\\n requires both manage_pages and publish_pages as an admin with \\\n sufficient administrative permission","type":"OAuthException","code":200,"fbtrace_id":"AzXqcby3Z7R72M88cOfZ7ED"}}

 

I found that there's no Get my Access Token option when using the connector and it should be the root cause.

Can you suggest how I can modify the json file to make it work?

image.png

Thanks!

  • rakadakaka Profile Picture
    rakadakaka 77 on at
    Re: Can't get access token for Power Platform Custom Connector

    @chungchung   : Can you please let us know , How the issue was resolved ?

  • Re: Can't get access token for Power Platform Custom Connector

    Hi @StefanM ,

    Thanks for your help!

    The issue has been resolved!

  • Verified answer
    StefanM Profile Picture
    StefanM 9 on at
    Re: Can't get access token for Power Platform Custom Connector

    Hi @chungchung.,

     

    you can fix this easily by running "pip install azure". This should uninstall the current installed azure-storage-blob module and install a working version. After you have run that command you should have installed the module version 1.5.0.

    You can check this with "pip freeze".

     

    It should look similar to this:

    AzureStoragePython - Kopie.jpg

     

     

     

     

     

    This are the step I used to upload the sample files:

    paconn login
    paconn create --api-prop .\apiProperties.json --api-def .\apiDefinition.swagger.json --icon .\icon.png

     

    I have found no workaround for the UI but I'm not a developer, so maybe someone with more coding skills can. I'm happy that I got this one up and runnig.

     

    Hope that helps.

  • Verified answer
    Re: Can't get access token for Power Platform Custom Connector

    Hi @StefanM ,

    Thanks very much for your input!

    I followed your words to use CLI but still faced some issues.

    Can you share how did you uploading the sample files in more details?

    I followed the instructions in the repo but faced an issue when commanding 'Create a Custom Connector'.

    The issue was cannot import name 'BlockBlobService' from 'azure.storage.blob'.

    It seemed to be related to a newer version of Azure pack but don't know how to fix it.

     

    Would it be possible to use the Power Automate interface instead of CLI?

    I'm new to CLI, would appreciate any further sharing.

    Thanks! 

  • StefanM Profile Picture
    StefanM 9 on at
    Re: Can't get access token for Power Platform Custom Connector
    Try using paconn from the github repo( https://github.com/microsoft/PowerPlatformConnectors/blob/master/tools/paconn-cli/README.md). I tried to build the connector step by step like you did and it failed with the same error you get. After uploading the sample files with paconn it worked like a charm. You won't get the get my access token option like it is shown in the tutorial after uploading the sample! Just sign in with you Facebook account and it should work
  • Re: Can't get access token for Power Platform Custom Connector

    Maybe you can try to report this issue directly on the Github. There seems to be no similar thread in the forum.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics