var params = {};
params['link'] = 'http://mysiteurl.com';
FB.api('/me/feed', 'post', params, function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Published to stream - you might want to delete it now!');
}
});
FB.login(function(){
var body = 'Reading Connect JS documentation';
FB.api('/me/feed', 'post', { body: body, message: 'My message is ...' }, function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response);
}
});
}, {});No. JFBConnect will use Graph API v1, if it's available for your App. If Graph API v1 isn't available, v2 will be used. I would recommend upgrading your calls to v2 wherever possible though, since it will make the transition easier. We're planning to support v1 apps until April of next year, when v2 becomes mandatory.Do I have to mention anywhere in configuration that I like to use graph api v1.0 or it will detect automatically depends on creation date of apps.
I'm not sure. You never told me what the error you were receiving was before. If the user isn't detected by the Javascript, try setting the "Autologin Facebook Users" setting in the JFBConnect -> Facebook area to "Yes". Then try your code again.But My question is user is already logged in .. then why I have to call FB.login again?
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
