facebook - Graph API PHP SDK - How to get FB.streampublish style box -
facebook - Graph API PHP SDK - How to get FB.streampublish style box -
i trying streampublish box facebook's new graph api example. using code not working. help guys!
<script> fb.ui( { method: 'stream.publish', message: 'getting educated facebook connect', attachment: { name: 'connect', caption: 'the facebook connect javascript sdk', description: ( 'a little javascript library allows harness ' + 'the powerfulness of facebook, bringing user\'s identity, ' + 'social graph , distribution powerfulness site.' ), href: 'http://github.com/facebook/connect-js' }, action_links: [ { text: 'code', href: 'http://github.com/facebook/connect-js' } ], user_message_prompt: 'share thoughts connect' }, function(response) { if (response && response.post_id) { alert('post published.'); } else { alert('post not published.'); } } ); </script>
did intialized or called fb scripts properly....
it goes like
fb.init("api key", "xd_receiver.htm"); window.fbasyncinit = function() { fb.init({ appid : 'getappid(); ?>', session : , // don't refetch session when php has status : true, // check login status cookie : true, // enable cookies allow server access session xfbml : true // parse xfbml }); // whenever user logs in, refresh page fb.event.subscribe('auth.login', function() { window.location.reload(); }); }; (function() { var e = document.createelement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; e.async = true; document.getelementbyid('fb-root').appendchild(e); }());i dont remember proper link in facebook
but think u need connect , phone call fbjs right!!!
may wou;d help!!!
php facebook facebook-graph-api
Comments
Post a Comment