I implemented a servlet in Java that handles loans using Facebook (according to the API). I implemented a servlet to perform the same functions as the sample PHP code and follow the recommendations of the API.
I send the FB ID of the item and get the response using the "payments_get_items" method. I answer correctly that it creates a pop-up dialog with a payment confirmation request (with all product data). When I click confirm, Facebook does not make another call to my servlet, but instead tells me that my application is not responding. I find it strange and have not found a way to solve this problem.
Below JSON I send back to FB when I am asked to execute "payments_get_items". image_URL is the actual url that works. Perhaps I missed something in my answer?
{"content": [{"Description": "test", "IMAGE_URL": IMAGE_URL, "item_id": "siPremiumShotgun", "price": 2, "product_url": IMAGE_URL, "Name": "Premium Shotgun"} ], "method": "payments_get_items"}
Thank you very much
Lario source share