Facebook share feature

I couldn't add the publish_action to my facebook app so i don't realy know if it post to facebook but i think the code is correct. I hope someone can test it with publish_action enabled on facebook app and be able to confirm.