django-facebook like and share button for contents. template example -
i trying django-facebook work website .
i have model
class photo(models.model): name = models.charfield(max_length=100) photo=models.imagefield(upload_to=/upload) catagory= models.charfield(max_length=100,choices=choice_c)
the template is
{% p in photos %} {% thumbnail p.photo im %} {% endthumbnail %} {%endfor%}
the view photos is
def home(request): photos=photo.objects.all() return render_to_response(‘home.html’, {‘photos’:photos,},context_instance=requestcontext(request))
now question how can have facebook “like” , “share” button contents i.e photo using django-facebook . have tried facebook code facebook developers site chooses photos if iterate , photos liked normal because iterating of them.
can give simple example how can individual likes photos using django facebook.
thanks in advance,
Comments
Post a Comment