Team Apps using Graph API - microsoft-graph-api

I am looking at automating Group creation using Graph API in Teams. I can successfully do that by using following API
const result = await client.api('/groups').post(group);
What I am looking for is creating a Tab in that Group and then adding an Organisational app (Internal App) into that tab.
Here is the link for creating tabs in teams but could not see anything on adding app into that tab
https://learn.microsoft.com/en-us/graph/api/teamstab-add?view=graph-rest-1.0
Is it possible ? and if so, where can i see APIs and relevant documents.

Basically, to add a Tab, you need to have the content of that tab configured and waiting. There are two ways to do this:
point to a website directly - this would be equivalent of using the "Website" option in the UI to add a tab, and then inserting the address of the website. This is kind of what the Graph endpoint sample you linked to is doing, but you need to use the payload specified here. See the answer over here for more info: Channel Tabs in Teams through Graph-API
Use an existing registered App in Teams that has a "Tab" functionality. The same link I gave above has options for doing this, like Planner, or Word, or whatever. You would be able to do the same thing for your own custom app, but then the app needs to be built, and installed into the tenant app catalog (i.e. the internal company "store"), or the Teams "App Store". Read more about that here

Related

Teams bot, which approach to go for?

My use case requires me to integrate teams with an app. Whenever a message is sent from that app, a private channel will be created and the message will be sent to teams. I've been reading the documentation and it has only confused me further. Do I need to use graph or bot? Can I do this using only graphs or only bot?
It's possible to send a message using Graph API - see here for more: https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http
HOWEVER, there are two ways to authenticate with Graph, either via an "application" permission (kind of like background service), or via "delegation", which means your app would work on behalf of a user. For this specific Graph endpoint, Microsoft mentions in the page that Application permissions are only allowed for "migration" (e.g. if you were building a tool to migrate from, say, slack to Teams). That means that you would have to use "delegation" which means the message would appear to come from a specific user.
As an example, instead of the message coming from "ABC Application", it would appear to come from "Syed Muhammad Ibrahim". If that's ok, then you can use Graph. If not, you would need to go the Bot route.

Pin Links to the Left-Hand Rail in Microsoft Teams

I need to pin important links of SharePoint to the Left-Hand Rail in Microsoft Teams
Please check attached image for better understanding.
Click here to open the image.
The left rail is only for actual Teams apps, so you can't pin just a web link there directly. However, there are a few options:
Develop a custom "tab" app that you deploy into a local company store. See this tool (built into Teams from Microsoft) to try out creating an app like this: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/app-studio-overview
Use Viva Connections, which provides it's own rail (but you need an entire SharePoint intranet site for this
Use a third party app like Quicklinks which lets you add your own "bookmarks" app in the left rail, for multiple web links.

"The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console"

I have linked my project in the Developer Console and I have looked up various sources to find a solution to this problem. What I am actually trying to do is use the inappproducts REST resource to fetch all my products from Play Console using the get() method. A lot of suggestions that I read was to add a new in-app product which I tried doing but the error still persists after adding new products, editing existing products, adding new subscriptions, etc. I can also see that the Google Play Developer API has been enabled for this project as well. I have also created credentials for both oauth and service account. I have been trying to call this API from the OAuth Playground using my Developers account and since I am the owner of this account, I believe it should work. What should I do?

How can I add a configuration page for my slack app?

How can I add a configuration page for my slack app?
example: asana has an add configuration button which leads to a page which we can use to then connect the slack user account with asana account
Several Slack apps (e.g. Twitter, Google Calendar) provide a configuration page after installation into Slack. However this feature seams to be available only to commercial partners of Slack, but not as a standard feature for every app developers.
Developers need to implement it by themselves with an external app / script that is linked the Slack app and store the configurations in their own database.
See also this answer for a full explanation on how this works.
Looking on the official Slack Plattform Roadmap for Developers this feature might be implemented in the future under "Install apps from within Slack".
Update:
You can now use Dialogs to create something similar to configuration pages. It allows you to open a custom modal window with up to 5 inputs (text or drop-downs). Its still not the same as having a full configuration page like the internal Slack apps have, but its a huge step forward and might be sufficient for many cases.

How do I submit my Facebook graph api action for approval?

I have a mobile phone app, supporting web site and a Facebook account
When certain actions are taken on my phone app I interact with my web server. My web server then posts some info to a page on MY Facebook account.
I chose to use the graph api to achieve the posts to my Facebook page but I can see no way of complying with Facebooks requirements for submission.
When I try to submit facebook states the following
No Aggregations created for this Action Type. Please create a
completed Aggregation populated with sample data before submitting for
review.
Firstly I have no idea what an aggregation is?
Then the docs state
Review your Action Type before submitting for approval. Make sure your
definition is complete and your app is testable end-to-end for
publishing actions of this Action Type
Which makes sense but how do I get my mobile app to Facebook staff so they can test?
I should add that all works fine in development mode
If you are trying to create an action via the Facebook Open Graph Beta, you should first look into the documentation here. There you will find all information on actions, objects and aggregations you can generate on the timeline.
Further you will have to go to the subsection Open Graph of your App Settings:
https://developers.facebook.com/apps/YOUR_APP_ID/opengraph and create your aggregations populated with sample data.
If you want to make a simple post though, then use the Graph API and POST a Post object to the feed connection of the User object. There are a lot of examples and tutorials on the web and a lot of questions on that matter here on stackoverflow.

Resources