Open external links from within the iFrame
If you want to open external links from within the iFrame, you can use the openExternalLinks
function. This will close your app and move to a new website.
This function requires the iFrame SDK to be initialized. See iFrame Overview for more information.
If you want to display a whop user profile, you can use the openExternalUrl
method
and pass their profile page link which looks like https://whop.com/@username
.
The whop app will intercept this and instead display a modal containing their user profile.
You can also use a user ID instead of username. The final link should look
like this: https://whop.com/@user_XXXXXXXX