Answer the question
In order to leave comments, you need to log in
Repost from a site to facebook do I need special permissions?
Good day, everyone. It is necessary to make it so that the user can repost to his facebook page, while a description and a picture should be added to the post, the function that performs this looks like this:
FB.ui({
method: 'feed',
link: 'https://site.ru',
caption: 'test',
description: 'Вы должны это видеть',
picture: 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Moscow-City2015.jpg/405px-Moscow-City2015.jpg',
}, function(response){
console.log(response.post_id);
});
Answer the question
In order to leave comments, you need to log in
I figured it out, I blunted it a little myself, if anyone is interested, when authorizing, it was necessary to specify the "scope" parameter:
FB.login(function(response) {
if (response.authResponse) {
//ваш код
}, {
scope:'publish_actions',
return_scopes: 'true'
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question