Как мы можем размещать ссылки в группах Facebook, используя Graph API в PHP/Javascript. Я выполнил приведенную ниже документацию.Публикация ссылок в группы facebook с использованием Graph API
https://developers.facebook.com/docs/graph-api/reference/v2.5/group/feed
Синтаксис:
FB.api(
"/{group-id}/feed",
"POST",
{
"message": "This is a test message"
},
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
Мой код:
FB.api(
"/https://www.facebook.com/groups/990024677728712/feed",
"POST",
{
"message": "The India national football team is governed by the All India Football Federation (AIFF). Since 1948, the AIFF has been affiliated with FIFA, the international governing body for football. In 1954, the AIFF became one of the founding members of the Asian Football Confederation (AFC). The team was automatically advanced to play in the 1950 FIFA World Cup (all the other Asian teams withdrew), but they did not go to the tournament in Brazil due to the cost of travels and certain financial crisis.[5] They won gold medals at two Asian Games and one silver at the Asian Cup.",
"link": "https://www.the-aiff.com/"
},
function(response){
if (response && !response.error) {
/* handle the result */
}
}
);
Это не размещение в Facebook. Пожалуйста, помогите мне. Заранее спасибо.
Проверьте URL-адрес в вызове FB.api. Он начинается с косой черты ('/'). Кроме того, я думаю, что вы должны передать '/ 990024677728712/feed' вместо всего URL-адреса. –
, если я делаю это, после публикации ошибки, как это «Пользователь не разрешил приложению выполнять это действие». Я также являюсь администратором группы. – Mohanraj