Link Unfurling for Reddit Links
This comprehensive Node.js sample illustrates how to implement a Messaging Extension for Reddit links in Microsoft Teams, featuring robust link unfurling capabilities. With easy configuration and user authentication, the extension enhances the sharing and interaction with Reddit content directly in Teams.
This sample demonstrates the following concepts:
- Link Unfurling
Configure Reddit App
Go To The Reddit App Preferences and register a new app for Reddit using the following parameters.
Parameter | Value |
---|---|
Type | web app |
redirect uri | Not required |
Description | Your own description |
About Url | Url to your own about page |
Afterwards be sure to save the client id
and the secret
for the next step.
Run the app (Using Microsoft 365 Agents Toolkit for Visual Studio Code)
The simplest way to run this sample in Teams is to use Microsoft 365 Agents Toolkit for Visual Studio Code.
- Ensure you have downloaded and installed Visual Studio Code
- Install the Microsoft 365 Agents Toolkit extension
- Select File > Open Folder in VS Code and choose this samples directory from the repo
- Using the extension, sign in with your Microsoft 365 account where you have permissions to upload custom apps
- In "env/.env.local" and "env/.env.local.user" file, set values for
REDDIT_ID
andSECRET_REDDIT_PASSWORD
that are gained in the last step - Select Debug > Start Debugging or F5 to run the app in a Teams web client.
- In the browser that launches, select the Add button to install the app to Teams.
If you do not have permission to upload custom apps (uploading), Microsoft 365 Agents Toolkit will recommend creating and using a Microsoft 365 Developer Program account - a free program to get your own dev environment sandbox that includes Teams.