Content
@
0 reply
0 recast
0 reaction
horsefacts
@horsefacts.eth
Some Frames v2 getting started resources: Demo app: Simple reference. Includes a setup tutorial in the README. https://github.com/farcasterxyz/frames-v2-demo Yoink: More complex app using both frames v1 and v2: https://github.com/horsefacts/yoink-devcon/tree/main/app Videos: Getting started: https://youtu.be/5wAbo_YsuC4 Manifest/embeds: https://youtu.be/S1KuwHYPtxU Spec: Official FIP: https://github.com/farcasterxyz/protocol/discussions/205
4 replies
14 recasts
47 reactions
elle
@riotgoools
should these frames be able to render anything that a normal web browser can? i was playing around and tried to frame up my homepage (static site) and everything went smoothly except it shows a blank white screen even tho the page seems to be loaded in. i assume it's loaded bc when i drag my finger over it, my cursor party server picks it up and also i can blindly click on the active elements and hear the sounds ¯\_(ツ)_/¯ so the js and the css (positioning) seem to be there i also tried a test page with nothing except the fc meta tag in the header and some text in the body but it also showed up blank. but i could double tap the screen which invisibly highlighted the text and gave me the ios look up/translate/etc menu
1 reply
0 recast
2 reactions
horsefacts
@horsefacts.eth
Yes! But you need to import the @farcaster/frame-sdk JS package and call sdk.actions.ready() on page load to hide the splash screen. Everything else looks good. We might bundle up this package and serve it from a CDN so you can just drop a <script> tag in existing static pages.
1 reply
0 recast
1 reaction
elle
@riotgoools
ohhhh i thought i could just disable the splash elements by omitting them (which i did) (⌒_⌒;) maybe i'll make a cloudflare worker or something to deal the sdk
1 reply
0 recast
1 reaction
Tony D’Addeo
@deodad
just published an bundled file for use cases like this https://warpcast.com/deodad/0x43f550d9
1 reply
0 recast
1 reaction
elle
@riotgoools
ah! thank u! so convenient ^-^ i tried to quickly bundle it myself last night but the output js i got didn't work so i put it on the back burner ¯\_(ツ)_/¯ it's working now (tho i changed the signature in the manifest to my other @elle account for aesthetic reasons but it still shows this one) i know the splash is for consistency but would u consider just making the splash optional? or could the webview automatically detect the page load to clear the splash? just so use cases that don't require the full sdk wont have to include the script https://ellesho.me/page?reset=1
1 reply
0 recast
1 reaction