crypto-code-school-inside-tezos
crypto-code-school-inside-tezos copied to clipboard
Make cryptobots sharable from user PoV
Currently the cryptobot is being passed to cryptobot.js
through location.state, but this is not feasible to use them as shareable link.
Will need to specify bot id like this -
/tezos/cryptobot/<bot_id>
Thoughts @bhaskarSingh ?
Makes sense.
On Thu, 25 Feb, 2021, 2:10 pm manangouhari, [email protected] wrote:
Currently the cryptobot is being passed to cryptobot.js through location.state, but this is not feasible to use them as shareable link. Will need to specify bot id like this - /tezos/cryptobot/<bot_id>
Thoughts @bhaskarSingh https://github.com/bhaskarSingh ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/buidl-labs/crypto-code-school-inside-tezos/issues/183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YAT6R5U4AHOI3MRRODETTAYEJLANCNFSM4YGCFFCA .
I'm taking this up.
I realised this doesn't solve our problem. Shifting to analytics. Will deal with this later.
Since loading 3d model is a big constraint in Twitter. We can go the image route for now.
Here's an example for downloading an image from 3d model codepen
Updated TODO
- [ ] Make cryptobot load by token-id
/tezos/cryptobot/<bot_id>
- [ ] While minting NFT cryptobot also attach bot image(uploaded on IPFS) to the metadata which will be used for sharing on Twitter.
Since loading 3d model is a big constraint in Twitter. We can go the image route for now.
Here's an example for downloading an image from 3d model codepen
That's not really the constraint in fact. Saving the image is a good feature, but doesn't align with this issue. You can't post images to twitter without authenticating the user.
All we can do is, share the link. Now, the constraint is, even when we share link to twitter, it won't show any data, because the page is client side rendered, and the metadata is static.
You can't post images to Twitter without authenticating the user.
Please elaborate.
Try asking yieldscan team. I think they have already sorted out how to share images on the Twitter part.
You can't post images to Twitter without authenticating the user.
Please elaborate.
So, currently we're using a Web Intent to twitter to share the Chapter Tweet right?
Now, if we use a similar strategy to share Cryptobot, it's not possible to add an image in there through the intent.
Try asking yieldscan team. I think they have already sorted out how to share images on the Twitter part.
No point. They're sharing images from the Yeildscan account, through their OWN account through the API. They're not sharing on the user's behalf.
Got it. Let's focus on just sharing the link for now.
Transaction Flow would also need the sharable links of Twitter and copy link: