I have the following code to share to a facebook wall, but it doesn't give the option to share to any managed pages the user has admin rights to (i tried testing with my own account) can anyone help me with this? Also i want to post in the future according to a date set in feed if possible.
<script>
window.fbAsyncInit = function() {
FB.init({appId: '475259649152397',
channelUrl : '<?php get_theme_root();?>/inc/facebook-javascript-sdk/channel.php',
status: true,
cookie: true,
xfbml: true
});
};
function Login()
{
FB.login(function(response)
{
if (response.authResponse)
{
getUserInfo();
}
else
{
console.log('User cancelled login or did not fully authorize.');
}
},{scope: 'manage_pages'});
}
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#share_button').click(function(e){
e.preventDefault();
FB.ui({
method: 'feed',
name: 'This is the content of the "name" field.',
link: ' http://example.com/',
picture: 'http://myface.gif',
caption: 'insightful thought provoking caption.',
description: 'interresting".',
message: ''
});
});
});
</script>
It works just fine at sharing to the users wall but no option to share to the managed pages
thanks in advance!