Re: facebook/twitter sharing, and testing

Skip to first unread message

sara ismail

Apr 10, 2013, 11:55:47 AM4/10/13
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!

Bill Freeman

Apr 10, 2013, 5:26:50 PM4/10/13
to django-users
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.

sara ismail

Apr 12, 2013, 1:45:48 PM4/12/13
didnt reallt get it, but thank u!

You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Reply all
Reply to author
0 new messages