Comments (5)
Here's an example for Fundraisers:
using the following embed code:
<meta name="twitter:card" content="product">
<meta name="twitter:site" content="@bountysource">
<meta name="twitter:creator" content="">
<meta name="twitter:title" content="Fundraiser for JS-Git by creationix">
<meta name="twitter:description" content="Git SCM Implemented as a set of JavaScript modules for use in any JS runtime.">
<meta name="twitter:image:src" content="https://c10078377.ssl.cf2.rackcdn.com/5267b26626ce73a0392d246aa66b664e.jpg">
<meta name="twitter:data1" content="$9,081">
<meta name="twitter:label1" content="Raised">
<meta name="twitter:data2" content="$30,000">
<meta name="twitter:label2" content="Goal">
<meta name="twitter:domain" content="bountysource.com">
<meta name="twitter:app:name:iphone" content="">
<meta name="twitter:app:name:ipad" content="">
<meta name="twitter:app:name:googleplay" content="">
<meta name="twitter:app:url:iphone" content="">
<meta name="twitter:app:url:ipad" content="">
<meta name="twitter:app:url:googleplay" content="">
<meta name="twitter:app:id:iphone" content="">
<meta name="twitter:app:id:ipad" content="">
<meta name="twitter:app:id:googleplay" content="">
from core.
I'm uncertain whether including the dynamic content (e.g. project name and bounty amount) is feasible without using some server side code to generate the meta tags. I think some testing will be needed to see if twitter fully loads pages in phantomjs or something like it before reading the meta tags. I suspect they just scrape the html (edit: according to this SO answer that is the case). I also wonder if the cards will stay up-to-date with the bounty amount. URLs might only get crawled once, or rarely to generate cards. Also, since cards are a new feature the answers to these questions might change.
from core.
@nathanathan is right. I just ran a quick test to confirm this. My HTML looked like this:
...
<meta name="twitter:title" content="">
...
And then I used jQuery to populate the meta tag title:
$(function () {
$('meta[name="twitter:title"]').attr('content', 'test title');
});
After uploading the page, I tried validating it using the Twitter Card Validator and this is what came back:
Without some sort of server-side pre-population this doesn't seem possible at all. =\
from core.
Hey
I faced a problem
I used the product card code with dynamic URL like ynomy.rexwedsolution.com/id ...(id is product id which created at runtime)At this page i used the product caed meta tags ..But it is not working ..please help
from core.
Closing this issue, as it's a backend task that shouldn't be on the frontend issue tracker. Thanks everyone!
from core.
Related Issues (20)
- void HOT 3
- "View on Etherscan" takes me to the extension page
- Add support for Gitea
- BountySource API is broken HOT 1
- API is broken!!!!!!!!
- Add support for Codeberg and Forĝejo
- Cash out with cryptocurrency HOT 1
- Stuck at adding repository issue tracker
- [CRITICAL] Bountysource is Insolvent, do not use! HOT 45
- Funds Abuse by Bountysource, 3rd week HOT 8
- Funds Abuse by Bountysource, 4th week
- Funds Abuse by Bountysource, 6th week
- Funds Abuse by Bountysource, 7th week HOT 6
- $139.50 cash out requested on the 19th of May; request not even acknowledged, let alone fulfilled, more than 7 weeks later HOT 9
- Criminal Liability of Bountysource CEO Xavier Latil?
- Alternatives to Bountysource HOT 18
- Unpaid bounties HOT 11
- New Bounty System? - Creating a Bountysource Alternative HOT 2
- Clarification regarding my relationship with Bountysource
- money got cutoff from my account
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.