Anyone built an API plugin for Microsoft Graph yet?

@renelonngren, I’m not entirely sure as I haven’t encountered that error before.

Do you have the “user.read” scope?

Did you click the “here” link before trying to authenticate? It’s in the last line before the “Authenticate” button.

These are the scopes: offline_access Mail.ReadWrite Calendars.ReadWrite.Shared User.ReadBasic.All Contacts.ReadWrite Mail.Send

and yes, I did click the “here” link. I am also getting the same error when using the plugin.

The url returned seems to carry the code:

https://bubble.io/plugin_editor/15360549464889722292582744000?code=M5b95623e-964b-3a70-09a3-f8cf2a788e3a&state=%7B%22tab%22%3A%22tabs-3%22%2C%22oauth_provider%22%3A%22plugin_api-1536054946422x889722292582744000%22%2C%22used_redirect_url%22%3A%22https%3A%2F%2Fbubble.is%2Fplugin_editor%2F54946422x889722292582744000%22%7D

But still throws that error…

Do you have a space between each scope in the app? I’m not sure if this would cause an issue “Calendars.ReadWrite.Shared User.ReadBasic.All”.

Hey @renelonngren,

I took a look at my plugin set up, and while I feel “User.ReadBasic.All” should cover it, I can see that on the app side, I’ve entered just “User.Read” like @Kfawcett said. Maybe try adding that?

05-07-07-43

Also just want to double check that you’ve added a “web platform” to your app settings on the Microsoft side and entered in the redirect url there.

Depending on the type of Microsoft account you’re using, this may apply.

" Remarks

The only permissions valid for Microsoft accounts are User.Read and User.ReadWrite . For work or school accounts, all permissions are valid."

Source: https://developer.microsoft.com/en-us/graph/docs/concepts/permissions_reference

1 Like

@Kfawcett and @romanmg - thanks so much for your help.

I was finally able to make this work, building my own api. I think the errors were caused by having used personal Microsoft/Outlook accounts and not the actual plugin or the descriptions in this tread.

For future reference: it is worth getting a free Microsoft Office 365 developer account so you can try out the API integration using a work account and not a personal account only. This is needed to be able to create an event with attendees for example, or sourcing the user avatar.

4 Likes

Greetings, all. Been trying to get the Graph API to work in Bubble but am getting a “Reply URL specified in the request does not match the reply URLs configured for the application.” Not sure if this related to Bubble requiring we use the debug_mode parameter to set up the call, but I’m about ready to pull my hair out. Any ideas/tips, @Kfawcett or @romanmg ?

Thanks in advance!

@Kfawcett : any idea how I can get the name etc of the user into the bubble db after the user signed up with his ms account?