On Wed, Apr 10, 2013 at 11:55 AM, sara ismail <sara.ismail1...@gmail.com>wrote:
> can anyone help me?! > > On Wednesday, April 10, 2013 4:50:51 PM UTC+2, sara ismail wrote: >> >> im new to django, and i am working on a project, a selling and buying >> website, where a user can post about a product that he/she wants to sell, >> and my part right now is sharing posts from the site with facebook, and >> twitter. i was wondering how to test such a thing, like unit testing, >> knowing that i implemented front end only, just an HTML file. >> and i have another question, how can i take a post url, and make it the >> link to be shared with facebook/twitter, for example, a facebook/twitter >> share button is located under or next to each post, and each button when >> pressed on, redirects to fb sharing, and has that specific post's link >> appearing. how to do that? >> >> check the attached image, instead of facebook dialogs and the flowers >> img, i wasnt the post link, and probably an img too. >> >> thanks in advance! > > I see three possibilities: 1. Test by posting to dummy twitter and facebook accounts, and the test code then as to follow the tweets/posts to see that they get there. Assures that things are working, but check the terms of service for these providers. In particular, see if they have some kind of sandbox mode (though differences between sandbox and live modes have been a problem for me with some services. 2. Test against your own internal clone of the services. Now you have extra stuff to write, test, and maintain. 3. Test against a mock network connection and simply capture the data and compare it to what you expect. Getting this working doesn't assure that it will work on the site, but once you have stuff working live you can do some captures to have better data to test against. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.