Using “share_open_graph” Facebook UI to create dynamic share dialog for quiz results

I have done with share_open_graph method with object like this,, FB.ui({ method: ‘share_open_graph’, action_type: ‘og.shares’, action_properties: JSON.stringify({ object : { ‘og:url’: ‘http://astahdziq.in/’, // your url to share ‘og:title’: ‘Here my custom title’, ‘og:description’: ‘here custom description’, ‘og:image’: ‘http://example.com/link/to/your/image.jpg’ } }) }, // callback function(response) { if (response && !response.error_message) { // then get post content … Read more

Send private messages to friends

Sending private message through api is now possible. Fire this event for sending message(initialization of facebook object should be done before). to:user id of facebook function facebook_send_message(to) { FB.ui({ app_id:’xxxxxxxx’, method: ‘send’, name: “sdfds jj jjjsdj j j “, link: ‘https://apps.facebook.com/xxxxxxxaxsa’, to:to, description:’sdf sdf sfddsfdd s d fsf s ‘ }); } Properties app_id Your … Read more