Как создать приложение facebook для виджета веб-страницы? - PullRequest
0 голосов
/ 23 сентября 2019

У меня есть скрипт

<?php
function fbLikeCount($id,$appid,$appsecret){
 $json_url ='https://graph.facebook.com/'.$id.'?access_token='.$appid.'|'.$appsecret.'&fields=fan_count';
 $json = file_get_contents($json_url);
 $json_output = json_decode($json);
 //Extract the likes count from the JSON object
if($json_output->fan_count){
 return $fan_count = $json_output->fan_count;
}else{
 return 0;
}
}
echo fbLikeCount('mypageid','myappid','myappsecret');
?>

Как создать новое приложение в Facebook для разработчиков, чтобы получить appid и appsecret?

...