crypto-code-school-inside-tezos icon indicating copy to clipboard operation
crypto-code-school-inside-tezos copied to clipboard

Make cryptobots sharable from user PoV

Open manangouhari opened this issue 4 years ago • 12 comments

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 ?

manangouhari avatar Feb 25 '21 08:02 manangouhari

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 .

bhaskarSingh avatar Feb 25 '21 08:02 bhaskarSingh

I'm taking this up.

manangouhari avatar Feb 25 '21 10:02 manangouhari

I realised this doesn't solve our problem. Shifting to analytics. Will deal with this later.

manangouhari avatar Feb 25 '21 12:02 manangouhari

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

bhaskarSingh avatar Feb 27 '21 09:02 bhaskarSingh

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.

bhaskarSingh avatar Feb 27 '21 09:02 bhaskarSingh

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.

manangouhari avatar Feb 27 '21 09:02 manangouhari

You can't post images to Twitter without authenticating the user.

Please elaborate.

bhaskarSingh avatar Feb 27 '21 09:02 bhaskarSingh

Try asking yieldscan team. I think they have already sorted out how to share images on the Twitter part.

bhaskarSingh avatar Feb 27 '21 09:02 bhaskarSingh

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.

manangouhari avatar Feb 27 '21 09:02 manangouhari

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.

manangouhari avatar Feb 27 '21 09:02 manangouhari

Got it. Let's focus on just sharing the link for now.

bhaskarSingh avatar Feb 27 '21 09:02 bhaskarSingh

Transaction Flow would also need the sharable links of Twitter and copy link: image

harsh242 avatar Mar 04 '21 04:03 harsh242