網站鏈接facebook 拿新的post
阿新 • • 發佈:2017-05-26
param eat ces class devel ret tps pic get
$http({ method: "GET", url: "https://graph.facebook.com/oauth/access_token?client_id=xxx&client_secret=yyy&grant_type=client_credentials", }).then(function (response) { var accessToken = response.data.access_token; $http({ method: "GET", url: "https://graph.facebook.com/zzz/feed?" + "fields=attachments{subattachments},message,link,created_time,full_picture&limit=8&access_token=" + accessToken, }).then(function (response) { var dailyData = response.data.data.reduce(function (result, data) { if (data.full_picture) { result.push(data); } return result; }, []); $scope.facebookDailys = dailyData; }) })
只需要創建一個新的app, 鏈接: https://developers.facebook.com/apps/
填寫表格後去facebook 專業
在about 的有pageID
就這樣可以得到3個param。
網站鏈接facebook 拿新的post