views:

46

answers:

1

Hello All ,

I want to publish my photos from django application to the facebook wall, i use photos.upload method I am not using graph API. but I am not able to publish it even i took permissions to publish photos as well but still not working......

Please help me how could i achieve it please give me some sample code that will help me

A: 

you can publish photos by using this it work form me...

request.facebook(

        method = "stream_publish",
        args={
        'message' : "Test Message with Picture",
        'attachment' : simplejson.dumps({ 'media': [
                {'type': 'image',
                 'src': 'http://icanhascheezburger.files.wordpress.com/2009/03/funny-pictures-your-cat-is-bursting-with-joy1.jpg',
                 'href': 'http://xxxx/xx/5157d6da/'}]}),
        'uid' : 'uid'})
Ansh J