Tab don't show up on Microsoft Teams Bot - botframework

I followed this document Add tabs to Microsoft Teams apps to add a static tab in personal scope for my Ms teams app which is nothing but a chatbot built based on botbuilder nodejs sdk. Here is how entry from manifest.json file looks
"staticTabs": [
{
"entityId": "spotify_g",
"name": "Show Spotify home page",
"contentUrl": "https://www.spotify.com/us/",
"websiteUrl": "https://www.spotify.com/us/",
"scopes": [
"personal"
]
}
]
I am just trying show spotify home page for fun to try out this functionality so later I can embed my website's home page. But, for some reason I don't see anything when Tab is clicked on the installed Bot. Looks like its not rendering in an . Any thoughts ?
Screen Shot can be found herew where is shows nothing is rendering on the tab.

Spotify doesn't allow themselves to be iframed by Teams. Here are console logs:
Try putting this URL for testing: https://www.bing.com/maps/embed
Best way to debug tabs would be by opening Microsoft Teams in web client and looking at console logs. Please have a look at documentation on how do tabs in Teams differ from a browser viewing the same content URL.

Related

projectNotLinked error when using Google Play API Explorer to issue refund

I am trying to use Google Play Developer API (API explorer). Specifically talking about "orders.refund" API- I want to refund and revoke a single purchased IAP but getting the error below.
Went into Google Play Developer console
API access -> Created a new Google Cloud Project. Under APIs, I see "Google Play Android Developer API" set to "ON".
I click View API details which forwards me to my Google Cloud project where I see my Google Play Android Developer API
I click "Try in API explorer"
On the left side, I click order -> refund, and fill in the PackageName, orderID and revoke boolean field.
Google OAuth 2.0 and API Key are both checked, and I click EXECUTE
"Sign up with Google" dialog appears, I choose the same account I have, and then get the below error
Tried what other posts suggested a few years back- adding a new IAP product in Google Play Console, deleted it, but still no-go.
Anyone knows how to unblock me?
{
"error": {
"code": 403,
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
"errors": [
{
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
"domain": "androidpublisher",
"reason": "projectNotLinked"
}
]
}
}

Need deep link into Teams App into Approvals App and put my users right on their "received" approvals view

Need a deep link (or shareable link) to allow my users to go directly to the Approvals App (approvals hub) - received list in the Teams App (not web).
I've searched and searched and cannot find anything. This is the closest I'm getting which gets me to a dialogue box that asks to open the approvals "hub" (app).
https://teams.microsoft.com/l/app/7c316234-ded0-4f95-8a83-8453d0876592?source=app-details-dialog
But, I'd like to "auto open" this and put them right on "their approvals" (received) page in the approvals app in the teams app.
Please help.
Try this deeplink: https://teams.microsoft.com/l/entity/7c316234-ded0-4f95-8a83-8453d0876592/approvals
It's a deeplink to the tab of the Approvals app.

Layout view in MS Teams is completely different from Azure portal Test in Webchat console, how can I fix it?

I created a bot which I integrated with MS Teams channel. The layout view as shown in the WebChat window and emulator is perfect which is exactly what I need but when I deployed my bot with MS Teams, the view looks messed up and very cluttered. Any advice how to fix this?
MS Teams view layout
Azure portal Webchat console view
Please excuse my shortcomings as I am a new user to Stackoverflow and don't know how to address questions but if there are any suggestions for this issue, those would be greatly appreciated. Thanks.
I would recommend using markdown in an Adaptive Card.
Bot Framework SDK v4 (Node)
await context.sendActivity({ attachments: [CardFactory.adaptiveCard({
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Top Options: \nOption 1: [https://microsoft.com](https://microsoft.com) \nOption 2: [https://microsoft.com](https://microsoft.com) \nOptions 3: [https://microsoft.com](https://microsoft.com)"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
})] });
Teams Screenshot
Web Chat Screenshot
Note, rendering behaviors do differ across different platforms.
Hope this helps!

Load 1:1 bot as tab in Teams

How can I load my 1:1 bot (so; a bot that doesn't work inside a channel) as a tab in Teams? The default manifest options only provide ways to set it as 1:1 (but then each user would have to add the bot manually) or as channel-bot (but that's more for commands rather then discussions).
So looking for something like this:
http://prntscr.com/nqzh37
Bots are supported only as part of conversation. This could be personal or team conversation. Currently, what you are looking for is not possible in Microsoft Teams.
You can publish an app to the Tenant Apps Catalog from where individual could install it. We are working on feature for Tenant admin to install certain apps for all the users.
One possible option is to 'Add a tab' and choose 'Website' and link to your bot. This would require you to run your bot in web chat, but in this way the bot would not be integrated into Teams, wouldn't listen for #mentions (as it wouldn't have been added as an app) yet would be accessible to any user who has access to that Teams channel. (This example links to "mockbot", accessible via the BotFramework-WebChat GitHub repo).
Keep in mind, this loads the website hosting the bot. In this example, mockbot utilizes the entire web page. Therefore, we only see the bot. If the bot is embedded with other content on the page, then the other content will be displayed, as well.
Click the '+' symbol:
Choose 'Website':
Give the bot/app a name and add the link:
Enjoy bot mayhem:
Hope of help!

MSTeams dev: Navigate from Personal tab to different Team/conversation

Question
How can I create a link to navigate to a Team's channel, from within a custom personal tab?
Context
I'm trying to navigate from within a personal tab to a Team the user is a member of. I've tried the only 2 options I can think of so far:
using an a tag
using microsoftTeams.executeDeepLink
But they don't work.
When clicking the a tag, the tab contents are redirect to the general MS Teams navigation page, where you can choose to open in client or web.
When using the microsoftTeams.executeDeepLink function, a result is returned containing the error message The executeDeepLink API is not implemented in this client.
It seems the API only works on team (configurable) tabs on the desktop client.
#Nsevens This feature is not public yet. Could you please try this in the Developer Preview

Resources