jquery - How to add remote upload functionality to a web app with Instagram-like Filters to allow sharing on Facebook? -


i found awesome tutorial on building web app instagram-like filters: http://tutorialzine.com/2013/02/enhancing-the-instragram-filter-app/

the app allows drag picture computer browser , apply instagram-like filters it. can download image computer.

i trying figure out how add ability share photo on facebook. possible without remote upload?

i have 1 idea of using script:

<a class="share" onclick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=title_goes_here&amp;p[summary]=copy_goes_here&amp;p[url]=http://www.website.com&amp;&amp;p[images][0]=http://www.webste.com/image_url.jpg', 'newwindow', 'width=555, height=315'); return false;"></a> 

would possible replace "http://www.webste.com/image_url.jpg" part temporary image generated canvas?

thanks much!

i believe not possible.

the way pass image directly in url create data uri. while canvas have todataurl() method such representation of image, share.php not support passing , expects normal url. if did, such long url window.open break on browsers, @ least older ie versions seem have around 2kb url length limit.

one thing might able though upload image directly facebook getting user log in facebook appropriate privileges , posting https://graph.facebook.com/me/photos, have not tried javascript.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -