StanScates / Tweet.js-Mod

Basic wrapper for Seaofclouds / Tweet.js that incorporates functionality with Twitter's v1.1 API
MIT License
234 stars 103 forks source link

X-Domain #9

Closed rickydazla closed 11 years ago

rickydazla commented 11 years ago

If I am embedding tweets on a site (e.g. hosted eComm) will your solution work if the scripts etc are hosted at a diff domain - e.g. CDN for the eComm site in question or personal server?

wtadesign commented 11 years ago

Have you tried :

The twitter folder needs to be in the root directory of server/domain your Twitter feed page is on, so you would need to access the ftp of the eComm site, upload the "twitter" folder to that sever. Set up the "Your Twitter App" url as the "eComm site" domain url.

rickydazla commented 11 years ago

I have not tried. Figured I would ask first. Site domain is e.g. store.ecomm.com BUT assets are served from cdn.com ...

On Jun 10, 2013, at 10:25 PM, wtadesign notifications@github.com wrote:

Have you tried :

The twitter folder needs to be in the root directory of server/domain your Twitter feed page is on, so you would need to access the ftp of the eComm site, upload the "twitter" folder to that sever. Set up the "Your Twitter App" url as the "eComm site" domain url.

— Reply to this email directly or view it on GitHub.

wtadesign commented 11 years ago

if it does not work for you, you could try just setting up a "twitter" folder on a server you have access to abc.com, Set up the "Your Twitter App" url for that same domain abc.com, create a single page for just the twitter feed on that server abc.com. On your ecomm site iframe or php include that twitter page you set up.

StanScates commented 11 years ago

https://github.com/StanScates/Tweet.js-Mod/issues/6

jasonabird commented 11 years ago

Created a jsonp fork with some checks for Access-Control-Allow-Origin here https://github.com/jasonabird/Tweet.js-Mod.

rickydazla commented 11 years ago

Jason! Thanks. Got it working on Shopify :8ball: