Graph API PHP SDK - FB.streampublish stili kutusunu almak için nasıl

0 Cevap php

Ben Facebook'un yeni Graph API örnek bir streampublish kutu almak için çalışıyorum. Ben bu kodu kullanıyorum ama onun değil çalışma. Herhangi çocuklar yardım!

<script>
FB.ui(
   {
     method: 'stream.publish',
     message: 'getting educated about Facebook Connect',
     attachment: {
       name: 'Connect',
       caption: 'The Facebook Connect JavaScript SDK',
       description: (
         'A small JavaScript library that allows you to harness ' +
         'the power of Facebook, bringing the user\'s identity, ' +
         'social graph and distribution power to your site.'
       ),
       href: 'http://github.com/facebook/connect-js'
     },
     action_links: [
       { text: 'Code', href: 'http://github.com/facebook/connect-js' }
     ],
     user_message_prompt: 'Share your thoughts about Connect'
   },
   function(response) {
     if (response && response.post_id) {
       alert('Post was published.');
     } else {
       alert('Post was not published.');
     }
   }
 );
</script>

0 Cevap