cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Can't get access token for Power Platform Custom Connector

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!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Microsoft
Microsoft

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! 

View solution in original post

Highlighted
Regular Visitor

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.

View solution in original post

5 REPLIES 5
Highlighted
Helper III
Helper III

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.

Highlighted
Regular Visitor

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
Highlighted
Microsoft
Microsoft

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! 

View solution in original post

Highlighted
Regular Visitor

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.

View solution in original post

Highlighted
Microsoft
Microsoft

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

Hi @StefanM ,

Thanks for your help!

The issue has been resolved!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (5,918)